parca-agent icon indicating copy to clipboard operation
parca-agent copied to clipboard

Python: Discover Python modules and show them in the icicle graph

Open metalmatze opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

Profiling Python applications, users have requested to see exactly which Python module is part of the call stack.

Describe the solution you'd like

It would be great to inject a module with its name into the call stack. Alternatively, we could surface a module in the tooltip where we show some other information already (like the file).

The latter approach would mean adding a new column to the resulting Apache arrow record in the backend. It's not ideal; however, it's nothing the agent directly has to care about.

Describe alternatives you've considered

Additional context

metalmatze avatar May 22 '24 18:05 metalmatze

Is module a first-class python thing? Like is it something the runtime actually knows about?

brancz avatar May 23 '24 09:05 brancz