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
The CPU profiler currently uses f_lineno as the line associated with each sample. However, f_lineno points to the start of the frame. Looking at a source listing of these profiles in pprof results in all samples appearing to be from the function definition.
One can use PyFrame_GetLineNumber (available in Python 2.7 as well) instead to get the currently-executing line from a frame. This can help understand where within a function the program is executing.
Activity
feat: support Python 3.11 by using `_PyInternalFrame` directly (#3)