macOS
brew install flamegraphlocal Homebrew formula metadata
sudo port install flamegraphMacPorts ports tree · devel/flamegraph/Portfile · 来源: api.github.com
安装
brew install flamegraphlocal Homebrew formula metadata
sudo port install flamegraphMacPorts ports tree · devel/flamegraph/Portfile · 来源: api.github.com
sudo dnf install flamegraphFedora Rawhide package metadata · flamegraph · 来源: dl.fedoraproject.org
nix profile install nixpkgs#flamegraphnixpkgs package indexes · pkgs/by-name/fl/flamegraph/package.nix · 来源: api.github.com
概览
Stack trace visualizer
历史
FlameGraph is Brendan Gregg's reference implementation for creating interactive SVG flame graphs from stack profiles. It ships the `flamegraph.pl` renderer and many `stackcollapse-*` converters that turn profiler output into folded stack input.
The official Flame Graphs page describes flame graphs as a visualization Brendan Gregg created to identify the most frequent code paths in profiled software. The GitHub project packages the open source programs used to create interactive SVGs.
The repository documents a three-step workflow: capture stacks, fold stacks, and render with `flamegraph.pl`. Its converter scripts cover profiler outputs from Linux perf, DTrace, SystemTap, FreeBSD pmcstat, Xcode Instruments, Intel VTune, Java jstack, Go pprof, gdb, and other sources.
The visualization spread from Gregg's performance-engineering work into talks, articles, operating-system profilers, open source tools, and commercial profilers. The official site says there are now over 100 other implementations and that flame graphs are available in most commercial profilers.
A major adoption path was the simplicity of the file format: profilers only need stack samples that can be collapsed into semicolon-separated folded stacks, after which the reference Perl script emits a portable interactive SVG.
The common package workflow is `perf record` or another profiler to capture stacks, `stackcollapse-*` to produce folded stacks, and `flamegraph.pl` to create an SVG. The README shows examples for Linux perf and DTrace and notes that folded input can be filtered with tools such as `grep` before rendering.
The scripts expose options for title, width, frame height, colors, palettes, inverted icicle graphs, flame charts, differential colors, and consistent palette maps.
FlameGraph is one of the canonical tiny-tools packages: mostly scripts, little ceremony, and huge influence. Package managers distribute it because one checkout provides the reference renderer plus a toolbox of converters for many profiling ecosystems.
Its significance is also cultural. The package gave systems programmers a common visual language for stack-profile data, and the folded-stack interchange format made it easy for unrelated profilers and language runtimes to interoperate.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
difffolded.pl | cli | 全局可执行文件 | |
files.pl | cli | 全局可执行文件 | |
flamegraph.pl | cli | 全局可执行文件 | |
pkgsplit-perf.pl | cli | 全局可执行文件 | |
range-perf.pl | cli | 全局可执行文件 | |
stackcollapse-aix.pl | cli | 全局可执行文件 | |
stackcollapse-elfutils.pl | cli | 全局可执行文件 | |
stackcollapse-gdb.pl | cli | 全局可执行文件 | |
stackcollapse-go.pl | cli | 全局可执行文件 | |
stackcollapse-instruments.pl | cli | 全局可执行文件 | |
stackcollapse-jstack.pl | cli | 全局可执行文件 | |
stackcollapse-ljp.awk | cli | 全局可执行文件 | |
stackcollapse-perf-sched.awk | cli | 全局可执行文件 | |
stackcollapse-perf.pl | cli | 全局可执行文件 | |
stackcollapse-pmc.pl | cli | 全局可执行文件 | |
stackcollapse-recursive.pl | cli | 全局可执行文件 | |
stackcollapse-sample.awk | cli | 全局可执行文件 | |
stackcollapse-stap.pl | cli | 全局可执行文件 | |
stackcollapse-vsprof.pl | cli | 全局可执行文件 | |
stackcollapse-vtune.pl | cli | 全局可执行文件 | |
stackcollapse.pl | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/brendangregg/FlameGraph
安装元数据
| 软件包键 | brew:flamegraph |
|---|---|
| 版本 | 1.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/flamegraph |
| 主页 | https://github.com/brendangregg/FlameGraph |
| 仓库 | https://github.com/brendangregg/FlameGraph |
| 上游文档 | https://github.com/brendangregg/FlameGraph#readme |
| 许可证 | CDDL-1.0 |
| 源码归档 | https://github.com/brendangregg/FlameGraph/archive/refs/tags/v1.0.tar.gz |
| macOS 提供的库 | perl |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | flamegraph |
| Version Scheme | 0 |
| Revision | 1 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
flamegraph
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-phpflamegraph
sudo port install flamegraph来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.