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.

Source Distribution

pyinstrument-flame-1.0.2.tar.gz (14.7 kB view hashes)

Uploaded source

Built Distribution

pyinstrument_flame-1.0.2-py3-none-any.whl (16.5 kB view hashes)

Uploaded py3

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