Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.14 KB

README.rst

File metadata and controls

33 lines (23 loc) · 1.14 KB

Flask Debugtoolbar Flame Graph

Based on the awesome djdt-flamegraph(https://github.com/23andMe/djdt-flamegraph) project.

Get a flame graph of the current request.

Screenshot

https://raw.githubusercontent.com/23andMe/djdt-flamegraph/master/flamegraph-screenshot.png

Features

Install

  • Add flask_debugtoolbar_flamegraph to your requirements.txt.
  • Add flask_debugtoolbar_flamegraph.FlamegraphPanel to DEBUG_TB_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.