Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to increase max depth #59

Open
devxpy opened this issue Sep 16, 2020 · 1 comment
Open

Ability to increase max depth #59

devxpy opened this issue Sep 16, 2020 · 1 comment

Comments

@devxpy
Copy link
Contributor

devxpy commented Sep 16, 2020

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!

@sumerc
Copy link
Owner

sumerc commented Sep 21, 2020

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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants