Files
FishServer/scripts/measure_debug.sh

9 lines
414 B
Bash
Raw Normal View History

#!/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 "$@"