jlfwong / jlfwong/speedscope

Adding a "Inverted Tree" Mode

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

Description

It can sometimes be helpful to invert a flamegraph to find functions that per-call are not that expensive, but that are called all over the place, and those calls in total add up to something substantial (e.g. malloc). This is different from "icicle" flamegraphs, which just flip the y-axis, and are instead a new tree. If we think about a flamegraph in the .folded form:
```
foo;bar 5
foo;bar;baz 10
...
```
An inverted tree is just what we get when we reverse the order of function calls within each line (`bar;foo 5` etc.).

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.