Skip to main content

An interactive SVG Flame Chart Renderer for pyinstrument.

Project description


Provides a FlameGraphRenderer for pyinstrument.

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

Example usage:

```python
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 flamegraph.pl 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pyinstrument_flame-1.0-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page