skillfed

djdt-flamegraph

Flamegraphs for Django Debug Toolbar

djdt-flamegraph v0.2.13 111.1K downloads/30d#12,433 on PyPI187
Permissive license MIT Abandoned released

What it is and what it does

djdt-flamegraph is a Django Debug Toolbar panel that generates flame graphs of request execution in real time during development. It hooks into the debug toolbar UI and visualizes CPU time spent across the call stack, helping developers spot performance bottlenecks in their Django applications.

The package wraps the FlameGraph tool and requires a single-threaded development server to function—it cannot generate graphs in multithreaded environments due to signal handling constraints. Flame graphs are disabled by default and must be explicitly enabled via a checkbox in the toolbar. The project has been archived and receives no active maintenance.

Use it for:

  • Identify which functions consume the most CPU time during a specific Django request
  • Visualize call stack depth and branching to spot unexpected recursion or inefficient code paths
  • Compare flame graphs across different request types to understand relative performance characteristics
  • Debug performance regressions by comparing flame graphs before and after code changes

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Integrates flame graph visualization into Django Debug Toolbar to profile request execution and identify performance bottlenecks in a single-threaded development server.

No. The project is archived and abandoned, with the last commit on 2020-06-04. Compatibility with modern Django and Python versions is not guaranteed. For current development, consider actively maintained alternatives.

Install

djdt-flamegraph on PyPI

pip

pip install djdt-flamegraph

uv

uv add djdt-flamegraph

poetry

poetry add djdt-flamegraph

Installing djdt-flamegraph

Before you install

Low friction to install, but the project is archived and unmaintained since 2020. The last release was in January 2020. Compatibility with modern Django and Python versions is uncertain.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions, making it safe to adopt from a licensing perspective.

Quickstart

# Install
pip install djdt-flamegraph

# Add to Django settings.py
DEBUG_TOOLBAR_PANELS = [
    'djdt_flamegraph.FlamegraphPanel',
]

# Run server (single-threaded only)
python manage.py runserver --nothreading --noreload

Requires single-threaded Django development server (--nothreading --noreload flags); will not work on Windows or with threaded/async servers; project is unmaintained since last commit 2020-06-04.

Verify before relying

  • Compatibility with Django versions released after 2020 and current Python 3.x releases
  • Whether the package works with threaded or async Django servers beyond the single-threaded requirement
  • Current status of the upstream FlameGraph dependency and any system-level requirements

Package facts

License MIT (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance abandoned — 2,401 days since the last release
Last repo commit (repository archived)
First released
Downloads 111,140/month — #12,433 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: djdt_flamegraph-0.2.13-py2.py3-none-any.whl

Keywords: djdt_flamegraph

Development Status :: 4 - BetaIntended Audience :: DevelopersNatural Language :: EnglishProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4

Tags

django debug toolbar profilingflame graph visualization djangorequest performance profilingdjango performance debuggingcpu flame graph djangodebug toolbar panel extensionrequest bottleneck analysis
profilingperformance-debuggingdjango-extension

More Quality Assurance packages

coverage

Coverage.py measures which lines of Python code…

permissive · top 1,000 on PyPI

ruff

Ruff is a Python linter and code formatter…

permissive · top 1,000 on PyPI

pexpect

Pexpect spawns and controls interactive console…

permissive · top 1,000 on PyPI

black

Black reformats Python source code to a…

permissive · top 1,000 on PyPI

pytest-xdist

pytest-xdist distributes pytest tests across…

permissive · top 1,000 on PyPI

cfn-lint

Validates AWS CloudFormation templates in YAML…

permissive · top 1,000 on PyPI

django-debug-toolbar-template-profiler

Adds a debug panel to django-debug-toolbar that…

permissive · top 15,000 on PyPI

flameprof

Converts Python cProfile statistics into…

permissive · top 15,000 on PyPI

django-debug-toolbar-template-timings

A Django Debug Toolbar panel that measures and…

unclear · top 15,000 on PyPI

django-debug-toolbar

Displays debug information panels in Django…

permissive · top 5,000 on PyPI

django-graphiql-debug-toolbar

Integrates Django Debug Toolbar into the…

permissive · top 15,000 on PyPI

pyramid-debugtoolbar

Pyramid_debugtoolbar injects an interactive…

permissive · top 5,000 on PyPI

Flask-DebugToolbar

Flask-DebugToolbar injects a debugging sidebar…

permissive · top 5,000 on PyPI

django-slowtests

Integrates with Django's test runner to…

permissive · top 15,000 on PyPI

snakeviz

SnakeViz is a web-based viewer for Python…

permissive · top 5,000 on PyPI

gprof2dot

Converts profiler output from many sources…

copyleft · top 5,000 on PyPI