https://pantsbuild.org/ logo
c

careful-address-89803

11/07/2022, 4:05 PM
Hey folks, is there a way to profile a pex_binary with, eg, scalene? It wants to be run as
scalene your_prog.py
. I tried creating a new pex_binary and setting
script
or
entry_point
to "scalene", but I can't seem to pass arguments to it?
h

happy-kitchen-89482

11/07/2022, 5:23 PM
You can override entry points and other things on an unmodified PEX at runtime with env vars: https://pex.readthedocs.io/en/latest/api/vars.html
That may help