You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a base class Runner and many derived classes that each have their own name (httpx, naabu, nmap, ...) and implement the yielder() function differently. My goal is to get precise profiling information about each of those derived classes.
In my flamegraph, I'm seeing the same function yielder take a lot of time, but I can't distinguish between the derived classes other than by the order they are run at.
pyinstrument gives me httpx.yielder, nmap.yielder, etc... which makes it easy to understand what's going on, but py-spy only gives me the function name. I like py-spy because it supports multi-threading, but without this feature I don't have a clear view on my app.
The text was updated successfully, but these errors were encountered:
In PyPerf we've implemented "class name" by checking if the first arg of a function is called self / cls. If self, we deref the arg's type (and if cls we assume it's the type) and then we read the type's name. This is implemented here in BPF, and can be added to py-spy easily.
Hi,
Would it be possible to have an option to display the class name when calling class / instance methods ?
Let me explain my use case for https://github.com/freelabz/secator:
I have a base class
Runner
and many derived classes that each have their own name (httpx
,naabu
,nmap
, ...) and implement theyielder()
function differently. My goal is to get precise profiling information about each of those derived classes.In my flamegraph, I'm seeing the same function
yielder
take a lot of time, but I can't distinguish between the derived classes other than by the order they are run at.pyinstrument
gives mehttpx.yielder
,nmap.yielder
, etc... which makes it easy to understand what's going on, butpy-spy
only gives me the function name. I likepy-spy
because it supports multi-threading, but without this feature I don't have a clear view on my app.The text was updated successfully, but these errors were encountered: