Skip to main content

Flamegraphs for Django Debug Toolbar

Project description

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

Get a flame graph of the current request, right in Django.

https://travis-ci.org/23andMe/djdt-flamegraph.svg?branch=master https://img.shields.io/pypi/v/djdt_flamegraph.svg

Screenshot

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

Features

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.

Project details


Download files

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

Source Distribution

djdt_flamegraph-0.2.12.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

djdt_flamegraph-0.2.12-py2.py3-none-any.whl (16.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file djdt_flamegraph-0.2.12.tar.gz.

File metadata

File hashes

Hashes for djdt_flamegraph-0.2.12.tar.gz
Algorithm Hash digest
SHA256 94a87e3197a7515518b184e9ddb2fbdd4fc7350af7a5768f7b7441cb96f91478
MD5 c6856c93fead6838608509408072eafd
BLAKE2b-256 f1ecfe8d6bb8ce882237b0bc7d22efecb6decad2198f068eac3c447c73b6e0ad

See more details on using hashes here.

File details

Details for the file djdt_flamegraph-0.2.12-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for djdt_flamegraph-0.2.12-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fa552df80f3c4a45b3ac87c55f7282c055ce37ab6414bc13e6e5bccb689e8570
MD5 1646d8c04d5a7f6c32987197a1ae9db2
BLAKE2b-256 d8a0a726d80f6ca39fba4ebf6bf7690688513378cec89545bdfcedc5595be153

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page