Improve the experience with recursive functions
Author: dpinolCreated Feb 28, 2024Updated May 24, 2025
Labelsenhancement
pyinstrument is a wonderful tool, but it's challenging to use on recursive functions
In this case, it's difficult to estimate the sum of the time spent on other functions called by the recursive functions (the ones at the bottom on the following snapshot)
Is there any way of obtaining the flat or cum times (as here) of the most sampled functions?
thanks
Source: joerick/pyinstrument