Files
FishServer/scripts/measure_debug.sh
2026-04-16 14:53:01 +08:00

9 lines
414 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/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"
exec "${PYTHON:-python3.8}" -m app.measure_debug_cli "$@"