skillfed

flameprof

cProfile flamegraph generator

flameprof v0.4 621.8K downloads/30d#5,713 on PyPI257
Permissive license MIT Abandoned released

What it is and what it does

Flameprof reads Python cProfile statistics and generates flamegraph visualizations to help you understand where your code spends time. It addresses a key limitation of cProfile's built-in reporting—which can be verbose and hard to parse—by rendering call stacks as compact, interactive flamegraphs. You profile your script normally using cProfile, then pipe the .prof file through flameprof to get an SVG you can open in a browser and explore by clicking.

The tool offers two output modes: native SVG with interactive features like tooltips showing cumulative and total timings and call counts, or a trace log format that feeds into the flamegraph.pl script. The native SVG mode includes visual cues like green bars to indicate where flameprof estimates timing ratios, and supports an inverted view to show total time across all calls. It's designed for developers, system administrators, and performance engineers who need to profile Python applications and visualize the results clearly.

Use it for:

  • Profile a long-running Python service to identify bottlenecks and understand which functions consume the most CPU time.
  • Generate an interactive SVG flamegraph from a cProfile dump to share with team members for performance review.
  • Replace gprof2dot for Python profiling when you want cleaner, less noisy visualizations of call stacks.
  • Export cProfile data as a trace log and process it with flamegraph.pl for further customization or analysis.
  • Analyze batch job performance by profiling the script, generating a flamegraph, and drilling into specific call paths.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Converts Python cProfile statistics into interactive flamegraph visualizations, either as native SVG or as trace logs compatible with flamegraph.pl.

No. The package is abandoned (last commit 2023-03-23, latest release 2018-12-25) and likely has compatibility issues with modern Python versions. While it solves a real problem—making cProfile output readable—the lack of maintenance, combined with high install friction from a source tarball distribution, makes it a poor choice for new projects. Consider maintained alternatives for production profiling workflows.

Install

flameprof on PyPI

pip

pip install flameprof

uv

uv add flameprof

poetry

poetry add flameprof

Installing flameprof

Before you install

High install friction: the package is archived (last commit 2023-03-23) and abandoned. No runtime dependencies, but the distribution itself is a source tarball, suggesting potential build or extraction steps. Not actively maintained.

License in practice

MIT license is permissive and poses no restrictions on use, modification, or distribution in commercial or private projects.

Quickstart

pip install flameprof

python -m cProfile -o myscript.prof myscript.py
flameprof myscript.prof > output.svg

Requires a cProfile .prof file as input; the package itself is no longer maintained and may have compatibility issues with modern Python versions.

Verify before relying

  • Whether the package works reliably with Python 3.10+ given its abandonment and last release in 2018.
  • Whether the source tarball distribution requires compilation or has undocumented system dependencies.
  • Compatibility with modern versions of flamegraph.pl when using --format=log output.

Package facts

License MIT (permissive)
Python support not specified
Install friction high — source build required
Runtime dependencies none
Maintenance abandoned — 2,789 days since the last release
Last repo commit
First released
Downloads 621,844/month — #5,713 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: flameprof-0.4.tar.gz

Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsLicense :: OSI Approved :: MIT LicenseOperating System :: MacOSOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 3Topic :: InternetTopic :: Scientific/EngineeringTopic :: System :: Distributed ComputingTopic :: System :: MonitoringTopic :: System :: Systems Administration

Tags

python profiling visualizationcprofile flamegraphperformance profiling svgcall stack visualizationpython cpu profilingflamegraph generatorprofile stat visualization
profilingperformance-analysisvisualization

More Scientific/Engineering packages