Get a flame graph of the current request, right in Django.
Screenshot
Features
Uses https://github.com/brendangregg/FlameGraph to generate a flamegraph right in the debug panel.
Install
Add djdt_flamegraph to your requirements.txt.
Add djdt_flamegraph.FlamegraphPanel to DEBUG_TOOLBAR_PANELS.
Run your server with python manage.py runserver --nothreading --noreload
Notes
ValueError at /: signal only works in main thread: Flame graphs can only be generated in a single threaded server.
Flame graphs are disabled by default. You’ll have to enable it by clicking the checkbox next to it in the Debug Toolbar.
Probably won’t work on Windows.
Development
This panel comes with an example Django app to test with. Just run make example and the server should start running.
History
0.2.5 (2015-10-11)
First release that actually works!
0.2.0 (2015-10-10)
Beta release.
0.1.0 (2015-10-5)
First release on PyPI.
Release files for djdt-flamegraph 0.2.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| djdt_flamegraph-0.2.13.tar.gz | 15.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| djdt_flamegraph-0.2.13-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 31.0 kB
Release files / djdt_flamegraph-0.2.13.tar.gz
| Download URL | djdt_flamegraph-0.2.13.tar.gz |
|---|---|
| Size | 15.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c07a71be58484636e021d4c49b129fd819f24c9128849cb59558e5141192dbf3
|
|
BLAKE2b-256 checksum How to use checksums |
ce75bcd75d857c95195588cad1f09e7679b0c21958f513a06f89d267e81ec6d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7
|
Release files / djdt_flamegraph-0.2.13-py2.py3-none-any.whl
| Download URL | djdt_flamegraph-0.2.13-py2.py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b3252b8cc9b586829166cc158b26952626cd6f41a3ffa92dceef2f5dbe5b99a0
|
|
BLAKE2b-256 checksum How to use checksums |
3685c4e42d21cf748c696b8c05316bbd8e8666f17eeda0cf1743056f4cf7622b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7
|