Skip to main content

An interactive SVG Flame Chart Renderer for pyinstrument.

Project description

Provides a FlameGraphRenderer for pyinstrument.

Uses Brendan Gregg's in the backend to render an interactive SVG.

Example usage:

import pyinstrument
import pyinstrument_flame

with pyinstrument.Profiler() as profiler:
# do stuff

renderer = pyinstrument_flame.FlameGraphRenderer(title = "Task profile", flamechart=True)
svg = profiler.output(renderer)

See the documentation for all renderer options.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyinstrument-flame, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size pyinstrument_flame-1.0.2-py3-none-any.whl (16.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyinstrument-flame-1.0.2.tar.gz (14.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page