perftools / xhgui

Web interface for XHProf profiling data can store data in MongoDB or PDO database
1.65k stars 342 forks source link

Show the parent-child call count on the graph #500

Open matthewmincher opened 3 weeks ago

matthewmincher commented 3 weeks ago

Hey

I noticed when using the callgraph that the call counts on the edges appear to use the total number of calls to the child function across the graph, rather than the number of calls from the parent function to the child.

I've made a change to track those individually, and updated a test that I thought should be failing. Please let me know if you'd prefer it done in a different way or would like any changes.

Before (note that they all say 59 calls - which is wrong): callgraph_before After: callgraph_after

image