Replies: 1 comment
-
|
pyinstrument uses I'm on mac, I've had decent luck with profiling with Instruments.app, but I don't know how to set this up for a Python extension. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Wondering if there's anyway I could get
pyinstrumentto see into cpp callstacks ... I like pyinstrument and the fact that it can be started up within process.Even if this feature was difficult to achieve in general -- I'm wondering if there might be a way I could hack together something simpler that would work for my specific codebase. In my codebase, I use nanobind to define an extension module in cpp, and all time spent within is a result of a python function call (python calls into cpp, never the reverse).
I could also conceivably add some code to my python -> cpp callsites to try and make this analysis more feasible ...
Beta Was this translation helpful? Give feedback.
All reactions