# Install gprof2dot with Homebrew, dnf, Nix

Convert the output from many profilers into a Graphviz dot graph. Version 2025.4.14 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:gprof2dot
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gprof2dot
```

  Evidence: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install gprof2dot
```

  Evidence: Fedora Rawhide package metadata: gprof2dot 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#gprof2dot
```

  Evidence: nixpkgs package indexes: gprof2dot from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

## Package facts

- **Package key:** brew:gprof2dot
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gprof2dot>
- **Version:** 2025.4.14
- **Source summary:** Convert the output from many profilers into a Graphviz dot graph
- **Homepage:** <https://github.com/jrfonseca/gprof2dot>
- **Repository:** <https://github.com/jrfonseca/gprof2dot>
- **Upstream docs:** <https://github.com/jrfonseca/gprof2dot#readme>
- **License:** LGPL-3.0-or-later
- **Source archive:** <https://files.pythonhosted.org/packages/bb/fd/cad13fa1f7a463a607176432c4affa33ea162f02f58cc36de1d40d3e6b48/gprof2dot-2025.4.14.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- gprof2dot (cli)
- gprof2dot (alias)

## Dependencies

- graphviz
- python@3.14

## Install behavior

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

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2025.4.14
- Local data: ok
- Upstream repository: https://github.com/jrfonseca/gprof2dot
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

gprof2dot is a Python command-line tool by Jose Fonseca that converts profiler output into Graphviz dot call graphs. The project README and PyPI page describe support for Linux perf, Valgrind callgrind, Sysprof, Xperf, VTune, Very Sleepy, Python profilers, Java HPROF, prof/gprof, DTrace, and stackcollapse data from FlameGraph.

Its niche is performance visualization without a heavy IDE: collect profile data with an existing profiler, run gprof2dot to produce a dot graph, and render it with Graphviz.

### Project history

The project began as a single Python script oriented around gprof-style output and grew into a multi-format profiler converter. The GitHub repository contains the main gprof2dot.py script, examples, schema data, tests, packaging metadata, and sample images.

The README records that the maintainer considers the tool to fulfill his needs and has limited maintenance time, which helps explain its conservative evolution: new profiler formats and compatibility work are added around a stable core rather than through a large application framework.

### Adoption history

PyPI lists gprof2dot as a mature console package for developers, with Jose Fonseca and toutpt as maintainers and Python 3.8 or newer as the package requirement. Homebrew packages it with Graphviz and Python dependencies, and the input package-manager facts also list Fedora and Nix.

The package is adopted where profiling workflows need portable artifacts: CI reports, command-line investigations, or sharing a rendered call graph with teammates who do not have the original profiler UI installed.

### How it is used

The canonical workflow pipes profiler data through gprof2dot and then through Graphviz, for example perf script output into gprof2dot -f perf and dot -Tpng. The README also documents workflows for Xperf, VTune, gprof, Python profile/cProfile, Java HPROF, DTrace, stackcollapse, and graph comparison.

Options prune small nodes and edges, choose input format, pick color maps, strip C++ qualifiers, focus on roots or leaves, limit graph depth, and compare two similarly structured profiles.

### Why package nerds care

gprof2dot is a durable glue package: it connects many profilers to Graphviz through a small CLI and avoids being tied to a single language runtime or profiler UI.

Package maintainers care about it because it is pure-Python-ish operationally but depends on Graphviz for the visible payoff; the package is most valuable when the executable and dot renderer are both easy to install from the same ecosystem.

### Timeline

- 2025: PyPI records release 2025.4.14 and Python >=3.8 metadata.
- 2026: Homebrew metadata packages gprof2dot with Graphviz and Python dependencies.

### Related projects

- Graphviz is the rendering backend for dot output.
- xdot.py is recommended by the README as an interactive viewer for generated graphs.
- FlameGraph stackcollapse data is a related input format, bridging gprof2dot with flame-graph tooling.
- Linux perf, Valgrind callgrind, gprof, DTrace, VTune, Xperf, Sysprof, Python profilers, and Java HPROF are related profiler sources.

### Sources

- <https://formulae.brew.sh/formula/gprof2dot>
- <https://github.com/jrfonseca/gprof2dot>
- <https://pypi.org/project/gprof2dot/>
- <https://raw.githubusercontent.com/jrfonseca/gprof2dot/main/README.md>


## 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:** gprof2dot
- **Version Scheme:** 0
- **Revision:** 0
- **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 - gprof2dot: normalized package name match | nixpkgs package indexes: gprof2dot from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- dnf - gprof2dot - 1.0-0.29.D20250404gitff9cd266b9.fc44: normalized package name match | Fedora Rawhide package metadata: gprof2dot from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Generate dot graphs from the output of several profilers | https://github.com/jrfonseca/gprof2dot


## 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.
- [graphviz](https://www.automicvault.com/pkg/brew/graphviz/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [flamegraph](https://www.automicvault.com/pkg/brew/flamegraph/) - Shares av.db curated category or tags: cli, developer-tools, performance, profiling, visualization.
- [flamebearer](https://www.automicvault.com/pkg/brew/flamebearer/) - 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, performance, profiling.
- [counts](https://www.automicvault.com/pkg/brew/counts/) - Shares av.db curated category or tags: cli, developer-tools, performance, profiling.
- [git-big-picture](https://www.automicvault.com/pkg/brew/git-big-picture/) - Shares av.db curated category or tags: cli, developer-tools, graphviz, visualization.
- [memray](https://www.automicvault.com/pkg/brew/memray/) - Shares av.db curated category or tags: cli, developer-tools, performance, profiling.
- [xdot](https://www.automicvault.com/pkg/brew/xdot/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, dot, graphviz.

## Combined YAML source

View the package source record on GitHub. [combined/gprof2dot.yml](https://github.com/automic-vault/db/blob/main/combined/gprof2dot.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
