Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Add time fraction filtering #162

Open
campos-ddc opened this issue Sep 12, 2016 · 0 comments
Open

Add time fraction filtering #162

campos-ddc opened this issue Sep 12, 2016 · 0 comments

Comments

@campos-ddc
Copy link

Add an option to only show nodes that contribute to a certain fraction of the total runtime.
For example: pycallgraph --min-fraction=0.05 (Only show nodes that have >5% of total runtime)

Most of the times I am profiling something, I am interested in finding the large culprits, and graphs quickly become too large for any medium-sized project due to thousands of function calls that only add up to 0.0001% of the runtime.

With some quick hacking of the source code I tested filtering nodes based on node.time.fraction (and also filtering edges / groups to not show unless they have relevant nodes). This was the only way I was able to generate a graph for my project, that failed with 2mb dot files even with max-depth at a low 4.

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

No branches or pull requests

1 participant