able-television-91310
07/27/2022, 9:04 AMPermission Denied: Try running again with elevated permissions by going 'sudo env "PATH=$PATH" !!
or py-spy not being able to find the pid/python code at all..bitter-ability-32190
07/27/2022, 10:41 AMable-television-91310
07/27/2022, 11:07 AM./pants bench
would be awesome (maybe with the ability to chose different benchmark tools 🙂bitter-ability-32190
07/27/2022, 11:41 AMtest
and run goalsable-television-91310
07/27/2022, 1:45 PMpy-spy top -- python dist/benchmarks.python.perf_bench/bench_predict.pex
after building the pex dir using this target:
pex_binary(
name="bench_predict",
dependencies=[":lib"],
execution_mode="venv",
layout="packed",
entry_point="bench.py",
)
But I get:
Error Rate 49.43% (Bad address (os error 14))
and don't see the python function which should be benched (Which is just a CPU burner function currently)witty-crayon-22786
07/27/2022, 2:05 PMsudo
on macOS, fwiwsudo py-spy top -p $pid
generally does it.able-television-91310
07/27/2022, 2:14 PM