Automic VaultAutomic Vault

brew

使用 Homebrew, dnf, MacPorts, Nix 安装 flamegraph

查看 flamegraph 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install flamegraph

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install flamegraph

MacPorts ports tree · devel/flamegraph/Portfile · 来源: api.github.com

Linux

Fedora dnf已验证 · 92%
sudo dnf install flamegraph

Fedora Rawhide package metadata · flamegraph · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#flamegraph

nixpkgs package indexes · pkgs/by-name/fl/flamegraph/package.nix · 来源: api.github.com

概览

软件包摘要

Stack trace visualizer

命令和别名

  • difffolded.pl
  • files.pl
  • flamegraph.pl
  • pkgsplit-perf.pl
  • range-perf.pl
  • stackcollapse-aix.pl
  • stackcollapse-elfutils.pl
  • stackcollapse-gdb.pl
  • stackcollapse-go.pl
  • stackcollapse-instruments.pl
  • stackcollapse-jstack.pl
  • stackcollapse-ljp.awk
  • stackcollapse-perf-sched.awk
  • stackcollapse-perf.pl
  • stackcollapse-pmc.pl
  • stackcollapse-recursive.pl
  • stackcollapse-sample.awk
  • stackcollapse-stap.pl
  • stackcollapse-vsprof.pl
  • stackcollapse-vtune.pl
  • stackcollapse.pl

历史

项目历史与用法

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.

时间线

  • 2013: Brendan Gregg gave an early LISA plenary talk on flame graphs.
  • 2016: The Flame Graph article was published in ACM Queue and Communications of the ACM.
  • 2017: Gregg presented an updated USENIX ATC talk, Visualizing Performance with Flame Graphs.
  • 2020s: Official site reports over 100 implementations and broad support in commercial profilers.

Related projects

  • d3-flame-graph is identified by the official site as a widely used interactive d3 implementation.
  • FlameScope is linked from the official site for time-range-oriented flame graph analysis.
  • Linux perf, DTrace, SystemTap, Xcode Instruments, VTune, jstack, and Go pprof are among the profiler ecosystems supported by converter scripts.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
difffolded.plcli全局可执行文件
files.plcli全局可执行文件
flamegraph.plcli全局可执行文件
pkgsplit-perf.plcli全局可执行文件
range-perf.plcli全局可执行文件
stackcollapse-aix.plcli全局可执行文件
stackcollapse-elfutils.plcli全局可执行文件
stackcollapse-gdb.plcli全局可执行文件
stackcollapse-go.plcli全局可执行文件
stackcollapse-instruments.plcli全局可执行文件
stackcollapse-jstack.plcli全局可执行文件
stackcollapse-ljp.awkcli全局可执行文件
stackcollapse-perf-sched.awkcli全局可执行文件
stackcollapse-perf.plcli全局可执行文件
stackcollapse-pmc.plcli全局可执行文件
stackcollapse-recursive.plcli全局可执行文件
stackcollapse-sample.awkcli全局可执行文件
stackcollapse-stap.plcli全局可执行文件
stackcollapse-vsprof.plcli全局可执行文件
stackcollapse-vtune.plcli全局可执行文件
stackcollapse.plcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本1.0
管理器更新时间
本地数据OK
上游当前
检测到的最新版本v1.0

https://github.com/brendangregg/FlameGraph

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键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 DatabaseHomebrew formula API
Taphomebrew/core
Full Nameflamegraph
Version Scheme0
Revision1
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

flamegraph

nix profile install nixpkgs#flamegraph
  • normalized package name match
  • 匹配方式:Flamegraph
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/fl/flamegraph/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
dnf95%

flamegraph 1.0-23.20241020git41fee1f.fc44

Stack trace visualizer

http://www.brendangregg.com/flamegraphs.html

sudo dnf install flamegraph
  • License: CDDL-1.0
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: flamegraph
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Flamegraph
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: flamegraph from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

flamegraph-demos 1.0-23.20241020git41fee1f.fc44

Demos of graphs produced by flamegraph

http://www.brendangregg.com/flamegraphs.html

sudo dnf install flamegraph-demos
  • License: CDDL-1.0
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: flamegraph
  • 1 提供
  • normalized package name match
  • 匹配方式:Flamegraph
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: flamegraph-demos from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

flamegraph-stackcollapse 1.0-23.20241020git41fee1f.fc44

Stack collapsers and support scripts

http://www.brendangregg.com/flamegraphs.html

sudo dnf install flamegraph-stackcollapse
  • License: CDDL-1.0 AND Apache-2.0 AND BSD-2-Clause AND GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: flamegraph
  • 6 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Flamegraph
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: flamegraph-stackcollapse from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

flamegraph-stackcollapse-perf 1.0-23.20241020git41fee1f.fc44

Stack collapser for perf output

http://www.brendangregg.com/flamegraphs.html

sudo dnf install flamegraph-stackcollapse-perf
  • License: CDDL-1.0 AND Apache-2.0
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: flamegraph
  • 5 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Flamegraph
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: flamegraph-stackcollapse-perf from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

flamegraph-stackcollapse-php 1.0-23.20241020git41fee1f.fc44

Stack collapser for PHP

http://www.brendangregg.com/flamegraphs.html

sudo dnf install flamegraph-stackcollapse-php
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: flamegraph
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Flamegraph
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: flamegraph-stackcollapse-php from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
MacPorts95%

flamegraph

sudo port install flamegraph
  • normalized package name match
  • 匹配方式:Flamegraph
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/flamegraph/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment