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

[Feature Request] Support other kinds of flame graphs #235

Open
QuarticCat opened this issue Oct 6, 2022 · 2 comments
Open

[Feature Request] Support other kinds of flame graphs #235

QuarticCat opened this issue Oct 6, 2022 · 2 comments

Comments

@QuarticCat
Copy link

For example, memory flame graph. https://www.brendangregg.com/FlameGraphs/memoryflamegraphs.html

@djc
Copy link
Contributor

djc commented Oct 10, 2022

This utility just provides some glue between running perf for you (on Linux, and other tools on other platforms) and the inferno crate for building the SVG. I don't know to which extent these dependencies would need changes in order to support this, but unfortunately I won't have time to work on this myself.

@ajgrah2000
Copy link

Using the existing command line options of this utility, it looks to support some of those out of the box to an extent (for ones that use 'perf').

Memory (brk() syscall):
cargo-flamegraph flamegraph --cmd "record -e syscalls:sys_enter_brk -a -g" -b

Memory (malloc calls):
perf probe --exec=/lib/aarch64-linux-gnu/libc.so.6 --add malloc
cargo-flamegraph flamegraph --cmd "record -e probe_libc:malloc -a -g" -b

Off-CPU (Block Device I/O):
cargo-flamegraph flamegraph --cmd "record -e block:block_rq_insert -a -g" -b

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

3 participants