macOS
brew install cargo-flamegraphlocal Homebrew formula metadata
sudo port install flamegraphMacPorts ports tree · devel/flamegraph/Portfile · 来源: api.github.com
安装
brew install cargo-flamegraphlocal Homebrew formula metadata
sudo port install flamegraphMacPorts ports tree · devel/flamegraph/Portfile · 来源: api.github.com
sudo apk add cargo-flamegraphAlpine Linux edge package indexes · cargo-flamegraph · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#cargo-flamegraphnixpkgs package indexes · pkgs/by-name/ca/cargo-flamegraph/package.nix · 来源: api.github.com
sudo pacman -S cargo-flamegraphArch Linux sync databases · cargo-flamegraph · 来源: geo.mirror.pkgbuild.com
sudo dnf install flamegraphFedora Rawhide package metadata · flamegraph · 来源: dl.fedoraproject.org
概览
Easy flamegraphs for Rust projects and everything else
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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.toml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cargo-flamegraph | cli | 全局可执行文件 | |
flamegraph | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/flamegraph-rs/flamegraph
安装元数据
| 软件包键 | brew:cargo-flamegraph |
|---|---|
| 版本 | 0.6.13 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/cargo-flamegraph |
| 主页 | https://github.com/flamegraph-rs/flamegraph |
| 仓库 | https://github.com/flamegraph-rs/flamegraph |
| 上游文档 | https://github.com/flamegraph-rs/flamegraph#readme |
| 许可证 | Apache-2.0 OR MIT |
| 源码归档 | https://github.com/flamegraph-rs/flamegraph/archive/refs/tags/v0.6.13.tar.gz |
| 最后更新 | 2026-06-03T12:47:55Z |
| Pulse | updated |
| 构建依赖 | rust |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-php来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.