#!/usr/bin/env python3 """Where does one API replica spend its CPU under the track 1 workload? (py-spy sidecar) python bench/track1/profile.py --label baseline --rate 260 --config replicas=2,api_cpus=1.0 Starts a fresh bench stand, runs k6 at a fixed arrival rate and samples ONE replica with py-spy (sidecar sharing its PID namespace, SYS_PTRACE only for the sidecar, image bench/track1/pyspy with a hash-pinned py-spy). Output evidence/track1/profile-