jlfwong / speedscope

🔬 A fast, interactive web-based viewer for performance profiles.
https://www.speedscope.app
MIT License
5.59k stars 246 forks source link

Callgrind inputs: Some called functions along with their callees are detached from the rest of execution at the root level #465

Open glatosinski opened 9 months ago

glatosinski commented 9 months ago

When visualizing the Callgrind output, some functions appear on the root level, while being called by other functions in the Callgrind file (they appear as cfn callees in other functions in the Callgrind output).

The example output for Callgrind (download link):

first-before-fix

Other visualizations demonstrating the issue:

second-before-fix

third-before-fix

The expected behavior is to have those methods embedded in the main call graph, not separately, starting from the root level.

glatosinski commented 9 months ago

I created a small PR (https://github.com/jlfwong/speedscope/pull/466) that fixes the issue.