Automic VaultAutomic Vault

brew

Install flamegraph with Homebrew, dnf, MacPorts, Nix

Stack trace visualizer. Version 1.0 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install flamegraph

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install flamegraph

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

Linux

Fedora dnfverified · 92%
sudo dnf install flamegraph

Fedora Rawhide package metadata · flamegraph · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#flamegraph

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

overview

Package summary

Stack trace visualizer

Commands and aliases

  • 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

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 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.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 1 platform targets.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
difffolded.plcliglobal executable
files.plcliglobal executable
flamegraph.plcliglobal executable
pkgsplit-perf.plcliglobal executable
range-perf.plcliglobal executable
stackcollapse-aix.plcliglobal executable
stackcollapse-elfutils.plcliglobal executable
stackcollapse-gdb.plcliglobal executable
stackcollapse-go.plcliglobal executable
stackcollapse-instruments.plcliglobal executable
stackcollapse-jstack.plcliglobal executable
stackcollapse-ljp.awkcliglobal executable
stackcollapse-perf-sched.awkcliglobal executable
stackcollapse-perf.plcliglobal executable
stackcollapse-pmc.plcliglobal executable
stackcollapse-recursive.plcliglobal executable
stackcollapse-sample.awkcliglobal executable
stackcollapse-stap.plcliglobal executable
stackcollapse-vsprof.plcliglobal executable
stackcollapse-vtune.plcliglobal executable
stackcollapse.plcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version1.0
manager updated
local dataok
upstreamcurrent
latest detectedv1.0

https://github.com/brendangregg/FlameGraph

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:flamegraph
Version1.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/flamegraph
Homepagehttps://github.com/brendangregg/FlameGraph
Repositoryhttps://github.com/brendangregg/FlameGraph
Upstream docshttps://github.com/brendangregg/FlameGraph#readme
LicenseCDDL-1.0
Source archivehttps://github.com/brendangregg/FlameGraph/archive/refs/tags/v1.0.tar.gz
Uses from macOSperl
Bottleavailable (on all)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

flamegraph

nix profile install nixpkgs#flamegraph
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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 provides
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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
  • Matched by: 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

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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