plasma-umass / scalene

Scalene: a high-performance, high-precision CPU, GPU, and memory profiler for Python with AI-powered optimization proposals
Apache License 2.0
12.18k stars 399 forks source link

Full stack profiling/ full stack tracing a la pyinstrument #765

Open FergusFettes opened 9 months ago

FergusFettes commented 9 months ago

Maybe I'm reading this wrong, but the ArXive paper talks about full stack profiling a lot and references pyinstrument. It seems like that functionality should be possible?

This issue has come up a few times, so it would be good to get some clarity on whether there are any plans to support this.

And if not, this issue can serve to clarify and direct people towards pyinstrument if they need that functionality :).

On the subject of pyinstrument, if anyone wants to try it:

pip install pyinstrument
pyinstrument --show-all -r html my_script.py

is what you want for the full stack with expandable trees :).

mcarans commented 4 months ago

Having the stack trace in the UI would be really useful. I tried pyinstrument but it uses too much memory when profiling my application.