Skip to main content

Flamegraphs for Flask Debug Toolbar

Project description

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

Get a flame graph of the current request.

https://img.shields.io/pypi/v/flask-debugtoolbar-flamegraph.svg

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for flask-debugtoolbar-flamegraph, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size flask_debugtoolbar_flamegraph-0.1.2-py2.py3-none-any.whl (16.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size flask_debugtoolbar_flamegraph-0.1.2.tar.gz (14.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page