scalene icon indicating copy to clipboard operation
scalene copied to clipboard

Get the call stack trace(s) in the UI

Open rben-dev opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. Sorry if I missed this, but the --stacks command line toggle activates stack traces collection (which can be indeed found in the produced json file), but nothing in the UI seems to relate to this.

Describe the solution you'd like Get a view of the most significant (in the sense of CPU/GPU/memory usage) call trace(s) when hovering over a line or a function.

Additional context When profiling a rather complex code where a line (e.g. a constructor of a class) is called multiple times in multiple contexts, it can be difficult to spot the call trace leading to the "hot spot" (consuming the most CPU/GPU/memory). I might however have missed a way of dealing with such situations (?)

rben-dev avatar Dec 21 '23 09:12 rben-dev

I'm think I'm looking for the same thing: maybe this works for you?

https://github.com/joerick/pyinstrument

FergusFettes avatar Jan 29 '24 05:01 FergusFettes

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

mcarans avatar Jul 12 '24 04:07 mcarans