{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/4"}],"enrichment":{"capability":"Middleware that profiles Django view execution using cProfile and displays results inline when a query parameter is added to any request.","skillfed_tags":["django-profiling","development-only","abandoned"],"use_cases":["Identify slow database queries or expensive function calls in a Django view during local development","Compare performance across different code paths by profiling the same endpoint with different parameters","Export profile data for detailed visualization of call hierarchies in external profiling viewers","Debug performance regressions by profiling a view before and after code changes"],"what_it_does":"django-cprofile-middleware is a Django middleware that wraps request handling with Python's cProfile profiler. When you add `?prof` to any URL while logged in as a staff user (by default), the middleware captures function-call timing data and displays it inline, letting you see which functions consumed the most CPU time during that request. It supports sorting results by different metrics and downloading the profile data for visualization in external tools.\n\nThe middleware activates only when Django's DEBUG setting is True and (by default) when the requesting user has staff privileges. It's a development-only tool for identifying performance bottlenecks without manual instrumentation.","worth_installing":"No. The package is abandoned (last release 2020-02-20, last commit 2021-08-18) with no active maintenance or security updates. Modern Django and Python versions may have broken compatibility. For profiling Django views, prefer actively maintained alternatives."},"id":"django-cprofile-middleware","links":{"html":"https://skillfed.io/packages/django-cprofile-middleware","md":"https://skillfed.io/packages/django-cprofile-middleware.md","pypi":"https://pypi.org/project/django-cprofile-middleware/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2020-02-20","license_spdx":null,"license_treatment":"permissive","name":"django-cprofile-middleware","python_support":"unspecified","summary":"Easily add cProfile profiling to django views."},"popularity":{"monthly_downloads":90241,"position":13609,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.5"}
