# Install flamegraph with Homebrew, dnf, MacPorts, Nix

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

## Install

```sh
sudo av install brew:flamegraph
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install flamegraph
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install flamegraph
```

  Evidence: MacPorts ports tree: devel/flamegraph/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- dnf (92%):

```sh
sudo dnf install flamegraph
```

  Evidence: Fedora Rawhide package metadata: flamegraph from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#flamegraph
```

  Evidence: nixpkgs package indexes: pkgs/by-name/fl/flamegraph/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:flamegraph
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/flamegraph>
- **Version:** 1.0
- **Source summary:** Stack trace visualizer
- **Homepage:** <https://github.com/brendangregg/FlameGraph>
- **Repository:** <https://github.com/brendangregg/FlameGraph>
- **Upstream docs:** <https://github.com/brendangregg/FlameGraph#readme>
- **License:** CDDL-1.0
- **Source archive:** <https://github.com/brendangregg/FlameGraph/archive/refs/tags/v1.0.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- 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)
- difffolded.pl (alias)
- files.pl (alias)
- flamegraph.pl (alias)
- pkgsplit-perf.pl (alias)
- range-perf.pl (alias)
- stackcollapse-aix.pl (alias)
- stackcollapse-elfutils.pl (alias)
- stackcollapse-gdb.pl (alias)
- stackcollapse-go.pl (alias)
- stackcollapse-instruments.pl (alias)
- stackcollapse-jstack.pl (alias)
- stackcollapse-ljp.awk (alias)
- stackcollapse-perf-sched.awk (alias)
- stackcollapse-perf.pl (alias)
- stackcollapse-pmc.pl (alias)
- stackcollapse-recursive.pl (alias)
- stackcollapse-sample.awk (alias)
- stackcollapse-stap.pl (alias)
- stackcollapse-vsprof.pl (alias)
- stackcollapse-vtune.pl (alias)
- stackcollapse.pl (alias)

## Uses from macOS

- perl

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.0
- Local data: ok
- Upstream repository: https://github.com/brendangregg/FlameGraph
- Upstream latest detected: v1.0 (current)
- info: No package-manager update timestamp was available.
## 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.

### Sources

- <https://github.com/brendangregg/FlameGraph>
- <https://raw.githubusercontent.com/brendangregg/FlameGraph/master/README.md>
- <https://www.brendangregg.com/flamegraphs.html>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **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:** head, stable

## Other Package-Manager Records

- Nix - flamegraph: normalized package name match | nixpkgs package indexes: pkgs/by-name/fl/flamegraph/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - flamegraph - 1.0-23.20241020git41fee1f.fc44: normalized package name match | Fedora Rawhide package metadata: flamegraph from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Stack trace visualizer | http://www.brendangregg.com/flamegraphs.html
- dnf - flamegraph-demos - 1.0-23.20241020git41fee1f.fc44: normalized package name match | 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 | Demos of graphs produced by flamegraph | http://www.brendangregg.com/flamegraphs.html
- dnf - flamegraph-stackcollapse - 1.0-23.20241020git41fee1f.fc44: normalized package name match | 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 | Stack collapsers and support scripts | http://www.brendangregg.com/flamegraphs.html
- dnf - flamegraph-stackcollapse-perf - 1.0-23.20241020git41fee1f.fc44: normalized package name match | 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 | Stack collapser for perf output | http://www.brendangregg.com/flamegraphs.html
- dnf - flamegraph-stackcollapse-php - 1.0-23.20241020git41fee1f.fc44: normalized package name match | 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 | Stack collapser for PHP | http://www.brendangregg.com/flamegraphs.html
- MacPorts - flamegraph: normalized package name match | MacPorts ports tree: devel/flamegraph/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [flamebearer](https://www.automicvault.com/pkg/brew/flamebearer/) - Shares av.db curated category or tags: cli, developer-tools, flamegraph, performance, profiling.
- [gprof2dot](https://www.automicvault.com/pkg/brew/gprof2dot/) - Shares av.db curated category or tags: cli, developer-tools, performance, profiling, visualization.
- [qcachegrind](https://www.automicvault.com/pkg/brew/qcachegrind/) - Shares av.db curated category or tags: cli, developer-tools, profiling, visualization.
- [snakeviz](https://www.automicvault.com/pkg/brew/snakeviz/) - Shares av.db curated category or tags: cli, developer-tools, profiling, visualization.
- [cargo-flamegraph](https://www.automicvault.com/pkg/brew/cargo-flamegraph/) - Shares av.db curated category or tags: cli, developer-tools, flamegraph, performance, profiling.
- [counts](https://www.automicvault.com/pkg/brew/counts/) - Shares av.db curated category or tags: cli, developer-tools, performance, profiling.
- [memray](https://www.automicvault.com/pkg/brew/memray/) - Shares av.db curated category or tags: cli, developer-tools, performance, profiling.
- [py-spy](https://www.automicvault.com/pkg/brew/py-spy/) - Shares av.db curated category or tags: cli, developer-tools, performance, profiling.

## Combined YAML source

View the package source record on GitHub. [combined/flamegraph.yml](https://github.com/automic-vault/db/blob/main/combined/flamegraph.yml)


## Sources

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