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