Closed anki-code closed 3 years ago
You can add operators, eg: depth_lt=5
, see https://python-hunter.readthedocs.io/en/latest/filtering.html
About durations (profiling basically) - it's kinda complicated, see https://python-hunter.readthedocs.io/en/latest/cookbook.html#profiling
Many thanks for the fast answer! I will dive into this.
I'm leaving here the link to my small solution - https://github.com/anki-code/xunter
Thanks for the help! Hunter is awesome!
Nice. Looks like I have to make a "projects using hunter" section somewhere in the docs.
Added.
@ionelmc thanks! You a bit forget about rst :) I've fixed in https://github.com/ionelmc/python-hunter/pull/95
Hi! Great tool! Many thanks!
I tried to use hunter to dive into the xonsh shell. The code is complex and I want to asking an advice.
Is there a way to restrict the depth and add time of execution for a functions/constructors?
For example we have:
In trace with depth=1 we have:
In trace with depth=2 we have:
The depth could allow to go from whole to the details.
Is it possible?
Thanks!
PS: Meanwhile if you have another advice how to deep dive into the complex code with tracing please feel free to share!