macOS
brew install cargo-flamegraphlocal Homebrew formula metadata
sudo port install flamegraphMacPorts ports tree · devel/flamegraph/Portfile · source: api.github.com
brew
Easy flamegraphs for Rust projects and everything else. Version 0.6.13 via Homebrew; verified 2026-06-03.
install
brew install cargo-flamegraphlocal Homebrew formula metadata
sudo port install flamegraphMacPorts ports tree · devel/flamegraph/Portfile · source: api.github.com
sudo apk add cargo-flamegraphAlpine Linux edge package indexes · cargo-flamegraph · source: dl-cdn.alpinelinux.org
nix profile install nixpkgs#cargo-flamegraphnixpkgs package indexes · pkgs/by-name/ca/cargo-flamegraph/package.nix · source: api.github.com
sudo pacman -S cargo-flamegraphArch Linux sync databases · cargo-flamegraph · source: geo.mirror.pkgbuild.com
sudo dnf install flamegraphFedora Rawhide package metadata · flamegraph · source: dl.fedoraproject.org
overview
Easy flamegraphs for Rust projects and everything else
history
cargo-flamegraph is the Cargo-facing entry point for flamegraph-rs/flamegraph, a Rust implementation of a flame graph workflow that can profile Cargo projects as well as arbitrary binaries.
Its appeal is pragmatic: it turns the usual sampler-plus-postprocessor performance workflow into `cargo flamegraph`, producing an SVG flame graph without requiring users to wire Perl scripts and shell pipelines together by hand.
The flamegraph-rs repository was created in March 2019 and published the `flamegraph` crate at version 0.1.0 the same day. The README presents the project as a Rust-powered flamegraph generator with additional Cargo support, built on Jon Gjengset's Inferno Rust flamegraph library.
The project ships both `flamegraph` and `cargo-flamegraph` binaries. That split let it serve Rust developers through Cargo's subcommand convention while remaining useful for profiling non-Rust executables.
Adoption followed the Rust performance-tooling path: the tool became a quick install for developers who wanted Linux `perf`, macOS tracing, or Windows collection wrapped in one Cargo-friendly command.
By 2026 the crate had hundreds of thousands of crates.io downloads and the GitHub repository had several thousand stars, which is notable for a narrow profiling utility.
For Rust projects, users commonly run `cargo flamegraph`, which defaults to profiling a release build. The README also documents profiling specific binaries, examples, tests, benchmarks, existing processes, and arbitrary executables via `flamegraph -- /path/to/binary`.
The tool relies on platform profilers: Linux uses `perf`, macOS uses `xctrace`, and Windows support is available through the Blondie backend or DTrace when present.
cargo-flamegraph is a good example of the Rust ecosystem turning a well-known systems technique into a package-manager-native workflow. Its package-nerd importance is less the flame graph idea itself and more the way it hides the fiddly collector/postprocessor chain behind Cargo subcommands.
It also connects several Rust performance projects: Cargo as the invocation layer, Inferno as the renderer, platform sampling tools as data sources, and newer alternatives such as Samply for interactive profiling.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
Cargo.tomlexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
cargo-flamegraph | cli | global executable | |
flamegraph | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/flamegraph-rs/flamegraph
install metadata
| Package key | brew:cargo-flamegraph |
|---|---|
| Version | 0.6.13 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/cargo-flamegraph |
| Homepage | https://github.com/flamegraph-rs/flamegraph |
| Repository | https://github.com/flamegraph-rs/flamegraph |
| Upstream docs | https://github.com/flamegraph-rs/flamegraph#readme |
| License | Apache-2.0 OR MIT |
| Source archive | https://github.com/flamegraph-rs/flamegraph/archive/refs/tags/v0.6.13.tar.gz |
| Last updated | 2026-06-03T12:47:55Z |
| Pulse | updated |
| Build dependencies | rust |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cargo-flamegraph |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
cargo-flamegraph
nix profile install nixpkgs#cargo-flamegraphcargo-flamegraph 0.6.13-r0
Easy flamegraphs for Rust projects and everything else, without Perl or pipes
https://github.com/flamegraph-rs/flamegraph
sudo apk add cargo-flamegraphcargo-flamegraph-bash-completion 0.6.13-r0
Bash completions for cargo-flamegraph
https://github.com/flamegraph-rs/flamegraph
sudo apk add cargo-flamegraph-bash-completioncargo-flamegraph-doc 0.6.13-r0
Easy flamegraphs for Rust projects and everything else, without Perl or pipes (documentation)
https://github.com/flamegraph-rs/flamegraph
sudo apk add cargo-flamegraph-doccargo-flamegraph-fish-completion 0.6.13-r0
Fish completions for cargo-flamegraph
https://github.com/flamegraph-rs/flamegraph
sudo apk add cargo-flamegraph-fish-completioncargo-flamegraph-zsh-completion 0.6.13-r0
Zsh completions for cargo-flamegraph
https://github.com/flamegraph-rs/flamegraph
sudo apk add cargo-flamegraph-zsh-completioncargo-flamegraph 0.6.13-1
Easy flamegraphs for Rust projects and everything else
https://github.com/flamegraph-rs/flamegraph
sudo pacman -S cargo-flamegraphflamegraph
sudo port install flamegraphflamegraph
nix profile install nixpkgs#flamegraphflamegraph 1.0-23.20241020git41fee1f.fc44
Stack trace visualizer
http://www.brendangregg.com/flamegraphs.html
sudo dnf install flamegraphflamegraph-demos 1.0-23.20241020git41fee1f.fc44
Demos of graphs produced by flamegraph
http://www.brendangregg.com/flamegraphs.html
sudo dnf install flamegraph-demosflamegraph-stackcollapse 1.0-23.20241020git41fee1f.fc44
Stack collapsers and support scripts
http://www.brendangregg.com/flamegraphs.html
sudo dnf install flamegraph-stackcollapseflamegraph-stackcollapse-perf 1.0-23.20241020git41fee1f.fc44
Stack collapser for perf output
http://www.brendangregg.com/flamegraphs.html
sudo dnf install flamegraph-stackcollapse-perfflamegraph-stackcollapse-php 1.0-23.20241020git41fee1f.fc44
Stack collapser for PHP
http://www.brendangregg.com/flamegraphs.html
sudo dnf install flamegraph-stackcollapse-phpsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.