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 details)
Built Distribution
File details
Details for the file pyinstrument-flame-1.0.2.tar.gz
.
File metadata
- Download URL: pyinstrument-flame-1.0.2.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
90fec4170c49aca4c744af53de23c047a3ac2c846373436b9c4dc08389c25dd5
|
|
MD5 |
36a5d42cb51930c922dfad953686acd2
|
|
BLAKE2b-256 |
c51741a1a34938c7e55d6fb168b758bde9fa4b58d15541381779b71624d6fbe4
|
File details
Details for the file pyinstrument_flame-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: pyinstrument_flame-1.0.2-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
cd8c0893b4c78e881db98c10157e53e4186d59795128fb6116ee8246c40f2480
|
|
MD5 |
d5b3e79b48fc1a7dcc71d8f42c369455
|
|
BLAKE2b-256 |
31756baeade2a221322d424e85f3d09e189076fd5a85deef8e7292a52426ebc7
|