yappi icon indicating copy to clipboard operation
yappi copied to clipboard

Ability to increase max depth

Open devxpy opened this issue 3 years ago • 1 comments

Hello, thanks for taking care of this beauty all these years!

Can we have a way to increase the depth of data yappi captures? I want to be able to see more functions in my call graph than the default.

I've noticed that the call graph stops at a function, that is implemented in python, so there are definitely missing callees after that which I would like to inspect.

I'm using kcachegrind, maybe its a limitation of that tool - I apologize if that is the case!

devxpy avatar Sep 16 '20 20:09 devxpy

Hello,

I will believe this limitation might be realted to the tool. I don't remember we have any limit for the callstack. You could always use following syntax to make sure your functions get profiled:

def foo():
     pass

yappi.start()
foo()
stats = yappi.get_func_stats(
    filter_callback=lambda x: yappi.func_matches(x, [foo])
).print_all()

sumerc avatar Sep 21 '20 09:09 sumerc