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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for pyinstrument_flame-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd8c0893b4c78e881db98c10157e53e4186d59795128fb6116ee8246c40f2480 |
|
MD5 | d5b3e79b48fc1a7dcc71d8f42c369455 |
|
BLAKE2b-256 | 31756baeade2a221322d424e85f3d09e189076fd5a85deef8e7292a52426ebc7 |