Replies: 1 comment
-
|
One thing that you'll realize with callgraph is - it almost only works for "examples". In reality there will be too many functions and relations and you can never visualize them all in a call graph. However, an interactive chart, like flamegraph, can do mostly what you described. VizTracer provides such a feature - you can simply use One difference is that flamegraph is a pure tree structure -> each node only has one parent. So for each node, it represents a function with a specific call stack. From my perspective, this is actually better than only the function itself - context matters. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to produce a callgraph from a VizTracer trace. Something like pprof does: https://graphviz.org/Gallery/directed/pprof.html
The benefit vis that you see how much time is spent in each function, on aggregate. For example you might easily see that 30% of total time was spent in a particular function, as a percentage of the total time profiled, even if that function was called many different times.
Is such a thing possible with VizTracer?
Beta Was this translation helpful? Give feedback.
All reactions