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.

Development

This panel comes with an example Django app to test with.

History

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.4.tar.gz (14.7 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for djdt_flamegraph-0.2.4.tar.gz
Algorithm Hash digest
SHA256 e635921474bbc143e284a5b4315105f7ed20541a4a7bfb10431aa5cee0972cd3
MD5 ba455e006b433050ff3925a225745184
BLAKE2b-256 5a79046b7a3a73c022de1bd30a762214d2eaf4bd0c7cc0c007d42e7700738219

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