DjDT Flame Graph
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 yourrequirements.txt
. - Add
djdt_flamegraph.FlamegraphPanel
toDEBUG_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.