Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate color key for flame graph #379

Open
alblue opened this issue Dec 14, 2020 · 3 comments
Open

Generate color key for flame graph #379

alblue opened this issue Dec 14, 2020 · 3 comments

Comments

@alblue
Copy link

alblue commented Dec 14, 2020

When a flame graph is generated with the -out flamegraph.html option, display a legend at the bottom that explains the colours used.

It might also be an idea to say whether or not the graph was generated from wall clock time, cpu time, allocation mode, or whether the display is for the total amount of time or number of samples.

That way, when the file is shared to another person, they immediately know what type of graph it is and what the colours mean.

@apangin
Copy link
Collaborator

apangin commented May 2, 2021

Flame Graph title is generated now depending on the -e and --total options (unless overridden with --title).

E.g.

  • when profiling -e wall => the title is "Wall clock profile"
  • when profiling -e alloc --total => the title is "Allocation profile (bytes)"

@Sarkie
Copy link

Sarkie commented Jan 23, 2024

@apangin
What about the colour legend?
Green is Java, yellow is C++, orange is kernel, and red is the remainder (native user-level, or kernel modules).

https://brendangregg.com/FlameGraphs/cpuflamegraphs.html

@apangin
Copy link
Collaborator

apangin commented Jan 23, 2024

colors

I'll add the legend in HTML later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants