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

Improve Documentation about Flame Graph (with --sample-time examples) #1932

Open
vimkim opened this issue Jun 10, 2024 · 1 comment
Open

Comments

@vimkim
Copy link
Contributor

vimkim commented Jun 10, 2024

Improve Documentation about Flame Graph

It seems like the flame graph is skipping a few functions if their durations are below a certain threshold. I was trying to generate a graph as dense as possible, minimizing the number of omitted functions.

Maybe due to my lack of foundational knowledge, reading the documentation about uftrace dump was not enough to figure out how to create such a dense flame graph.

I saw somewhere that I can use:

uftrace dump --sample-time 1us --flame-graph <...>

but I am unsure of other options.

My Questions Are:

  1. Can I set the sample time below 1 microsecond? Maybe to 0.0001 microseconds?
  2. Are there any options that guarantee the most dense version of the flame graph, preferably similar to that of Chrome tracing (if I may be so greedy)?

Thank you. If someone can provide information on this, I'm willing to create a PR to improve the documentation, which I hope will help the project.

@namhyung
Copy link
Owner

Yep, you can use 1ns for nano-second precision. Please feel free to send a PR for update!

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

No branches or pull requests

2 participants