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

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page