Comparison
django-cprofile-middleware vs line-profiler vs pyinstrument vs viztracer
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Easily add cProfile profiling to django views.
Likely abandoned. No release or commit for years (last release over 6 years ago).
pip install django-cprofile-middlewareLine-by-line profiler
Actively maintained. Last release 7 weeks ago, commits in 10 of the last 26 weeks. A safe choice.
pip install line-profilerCall stack profiler for Python. Shows you why your code is slow!
Actively maintained. Last release 6 days ago, commits in 12 of the last 26 weeks. A safe choice.
pip install pyinstrumentA debugging and profiling tool that can trace and visualize python code execution
Low maintenance activity. Last release 13 months ago, commits in 7 of the last 26 weeks. Weaker on recent releases and release cadence.
pip install viztracerIn short
- django-cprofile-middleware looks abandoned: avoid it for new projects.
- pyinstrument is the most used: 9.5M downloads a month, 4.7× more than line-profiler.
- Maintenance is comparable: line-profiler 77, pyinstrument 76, viztracer 36 on Pythie’s Index.
- Safe default for a new project: pyinstrument.
Side by side
| Metric | django-cprofile-middleware | line-profiler | pyinstrument | viztracer |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 17 | Pythie’s Index: 77 | Pythie’s Index: 76 | Pythie’s Index: 36 |
| Verdict | Likely abandoned | Actively maintained | Actively maintained | Low maintenance activity |
| Downloads / month | 104.3K | 2M | 9.5M | 1.4M |
| Downloads, month over month | +9% | -7% | +7% | +4% |
| GitHub stars | 152 | 3.3K | 8K | 7.8K |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 1 | 83 | 81 | 11 |
| Last release | Feb 20, 2020 | Oct 18, 2026 | Nov 27, 2026 | Nov 11, 2025 |
| Releases, 12 months | 0 | 3 | 3 | 0 |
| Weeks with commits | 0 / 26 | 10 / 26 | 12 / 26 | 7 / 26 |
| Recent contributors | 9 | 11 | 12 | 10 |
| First release | Sep 2013 | Jan 2009 | Jun 2014 | Aug 2020 |
| Python versions | – | 3.10 – 3.15 | – | 3.10 – 3.14 |
| License | MIT | BSD-3-Clause | non-standard | Apache-2.0 |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.