# flamegraph を Homebrew, dnf, MacPorts, Nix でインストール

flamegraph のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install flamegraph
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install flamegraph
```

  証拠: 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
```

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

- Nix (92%):

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

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

## パッケージ情報

- **パッケージキー:** brew:flamegraph
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.0
- **ソース概要:** Stack trace visualizer
- **ホームページ:** <https://github.com/brendangregg/FlameGraph>
- **リポジトリ:** <https://github.com/brendangregg/FlameGraph>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- 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 (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.0
## プロジェクトの歴史と使われ方

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.

### ソース

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


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- 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-24.20241020git41fee1f.fc45: normalized package name match | Fedora Rawhide package metadata: flamegraph from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Stack trace visualizer | http://www.brendangregg.com/flamegraphs.html
- dnf - flamegraph-demos - 1.0-24.20241020git41fee1f.fc45: 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Demos of graphs produced by flamegraph | http://www.brendangregg.com/flamegraphs.html
- dnf - flamegraph-stackcollapse - 1.0-24.20241020git41fee1f.fc45: 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Stack collapsers and support scripts | http://www.brendangregg.com/flamegraphs.html
- dnf - flamegraph-stackcollapse-perf - 1.0-24.20241020git41fee1f.fc45: 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Stack collapser for perf output | http://www.brendangregg.com/flamegraphs.html
- dnf - flamegraph-stackcollapse-php - 1.0-24.20241020git41fee1f.fc45: 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## Combined YAML source

View the package source record on GitHub. [combined/flamegraph.yml](https://github.com/mxcl/pkgdb/blob/main/combined/flamegraph.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
