if i run a pex file with `PEX_PROFILE_FILENAME=out...
# pex
a
if i run a pex file with
PEX_PROFILE_FILENAME=out.prof
, i can get the profile of the pex process. if that process itself depends on the
pex
library and invokes
pex.resolver.resolve()
, though, all i see from the profile is how long we waited on the pip subprocess to resolve 3rdparty dependencies. i'm trying to research this now -- is there an obvious way to get the profile of the pip subprocess?
h
(John is on a trip the next few days - not sure what his Internet access will look like)
a
i'm just using this to investigate a single performance issue, so i can hack it in for now
this is less of a pex question and more of a general python question too. i suspect i'll be able to find a good answer.
just hacked pex to call
py-spy
on the
pip
command-line
💯 1
thanks @witty-crayon-22786
actually realized that we run pip as a pex
so we can just set
PEX_PROFILE_FILENAME
in the env
ludicrous
genius