jlfwong / jlfwong/speedscope

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

Open
#465 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6.8k
Forks
320
PR merge metrics
No merged PRs in 30d

Description

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](https://raw.githubusercontent.com/antmicro/openroad-callgrind-report/main/docs/_static/speedscope/callgrind/ariane/992185_5_1_grt_callgrind.out)):

![first-before-fix](https://github.com/jlfwong/speedscope/assets/46489721/47005ffc-3934-496f-88ce-c22a37ac4468)

Other visualizations demonstrating the issue:

![second-before-fix](https://github.com/jlfwong/speedscope/assets/46489721/090968b5-af6a-4279-9e7e-2c6fa78b46c0)

![third-before-fix](https://github.com/jlfwong/speedscope/assets/46489721/2aa6338a-f3b0-49a3-846c-4873b38c0cc8)

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.