fix calculation logic, fix api endpoint

This commit is contained in:
zaiun xu
2026-04-15 09:01:45 +08:00
parent 670e6308a5
commit 45de318461
10 changed files with 158 additions and 94 deletions

11
scripts/measure_debug.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# 从仓库根目录运行单条鱼测量(与 fish_api / measure-watch 同一子进程逻辑)。
# 用法bash scripts/measure_debug.sh --fish-id 14
# 若在 fish_api 目录下可直接python -m app.measure_debug_cli --fish-id 14
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT/fish_api"
if command -v uv >/dev/null 2>&1; then
exec uv run python -m app.measure_debug_cli "$@"
fi
exec "${PYTHON:-python3}" -m app.measure_debug_cli "$@"