cargo-flamegraph
brew install cargo-flamegraph
v0.6.13
Apache-2.0 OR MIT
Easy flamegraphs for Rust projects and everything else
55
30-day installs · #4480
121
90-day · #5171
385
365-day · #5707
6.0k
★ GitHub stars · updated 2mo ago
Build dependencies
GitHub topics
flamegraphs
perf
profiling
Links
- https://github.com/flamegraph-rs/flamegraph
- GitHub: flamegraph-rs/flamegraph
- Brew formula source: Formula/c/cargo-flamegraph.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [
"rust"
],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Easy flamegraphs for Rust projects and everything else",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:36:08+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "cargo-flamegraph",
"github_default_branch": "main",
"github_last_commit_at": "2026-06-15T13:06:31Z",
"github_readme_excerpt": "# [cargo-]flamegraph\n\n[](example.svg)\n\nA Rust-powered flamegraph generator with additional support for\nCargo projects! It can be used to profile anything,\nnot just Rust projects! No perl or pipes required \u003c3\n\nBuilt on top of [@jonhoo\u0027s](https://github.com/jonhoo) wonderful [Inferno](https://github.com/jonhoo/inferno) all-rust flamegraph generation library!\n\n\u003e [!TIP]\n\u003e You might want to also try [samply](https://github.com/mstange/samply), which provides a more interactive UI\n\u003e using a seamless integration with Firefox\u0027s Profiler web UI. It is also written in Rust and has better macOS support.\n\n## Quick Start\n\nInstall it, and run\n\n```bash\n# Rust projects\ncargo flamegraph\n\n# Arbitrary binaries\nflamegraph -- /path/to/binary\n```\n\nHow to use flamegraphs: [what\u0027s a flamegraph, and how can I use it to guide systems performance work?](#systems-performance-work-guided-by-flamegraphs)\n\n## Installation\n\n\\[cargo-\\]flamegraph supports\n\n- [Linux](#linux): relies on `perf`\n- [MacOS](#macos): relies on `xctrace`\n- [Windows](#windows): native support with the [blondie](https://github.com/nico-abram/blondie) library; also works with `dtrace` on Windows\n\n`cargo install flamegraph` will make the `flamegraph` and `cargo-flamegraph` binaries available in\nyour cargo binary directory. On most systems this is something like `~/.cargo/bin`.\n\n## Linux\n\n**Note**: If you\u0027re using lld (which is the default since Rust 1.90.0) or mold on Linux, you must use the `--no-rosegment` flag. Otherwise perf will not be able to generate accurate stack traces ([explanation](https://crbug.com/919499#c16)).\n\nFor example, Rust 1.90.0 and later:\n\n```toml\n[target.x86_64-unknown-linux-gnu]\nrustflags = [\"-Clink-arg=-Wl,--no-rosegment\"]\n```\n\nfor explicitly configured lld on older toolchains:\n\n```toml\n[target.x86_64-unknown-linux-gnu]\nlinker = \"/usr/bin/clang\"\nrustflags = [\"-Clink-arg=-fuse-ld=lld\", \"-Clink-arg=-Wl,--no-rosegment\"]\n```\n\nand for mold:\n\n```toml\n[target",
"github_repo": "flamegraph-rs/flamegraph",
"github_stars": 5960,
"github_topics": [
"flamegraphs",
"perf",
"profiling"
],
"homepage": "https://github.com/flamegraph-rs/flamegraph",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 55,
"installs_365d": 385,
"installs_90d": 121,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "Apache-2.0 OR MIT",
"llm_generated_at": null,
"llm_model": null,
"name": "cargo-flamegraph",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 4480,
"rank_365d": 5707,
"rank_90d": 5171,
"raw_hash": "970324f11db8c4c8",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/c/cargo-flamegraph.rb",
"tap": "homebrew/core",
"test_dependencies": [
"rustup"
],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "0.6.13",
"versioned_formulae": [],
"why_use_this": null
}