lemon-oxygen-2929
02/08/2024, 11:58 AMpants run somefile.py or dist/something.pex? My pre-pants workflow was to run python -m cProfile somefile.py, but I'm not sure how to mimic that with pants.
A couple things that work are to add the cProfile instrumentation to the source, or to export a venv and set up PYTHONPATH with the source roots (as in the IDE setup), and then run python -m cProfile in the exported venv.
Are there any better approaches?