
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
django-snakeviz-profiling
Advanced tools
Django Snakeviz Profiling integrates snakeviz along with a db query display into a django middleware that can show results inline in your application.
No migrations are required nor do any extra url routes need to be added to your application, only requiring to install one piece of middleware.
Table of Contents
pip install django-snakeviz-profiling
In your settings file, add the following middleware as close to the top as possible to cover as much code as possible:
MIDDLEWARE = [
"django_snakeviz_profiling.SnakevizProfilingMiddleware",
...
]
Add django_snakeviz_profiling
to your installed apps:
INSTALLED_APPS = [
...
"django_snakeviz_profiling",
]
Finally, add the following config setting:
SNAKEVIZ_PROFILING = "PLEASE_PROFILE_REQUESTS"
On any request, add the following GET parameter to your url:
SNAKEVIZ_PROFILING=PLEASE_PROFILE_REQUESTS
, and instead of the regular page, you will be presented with a profile output from the request.
Note that if django_snakeviz_profiling
is used, individual requests will be dramatically slower,
so be careful using this in prod!
django-snakeviz-profiling
is distributed under the terms of the MIT license.
Parts of the code comes from the Snakeviz Project under
the BSD 3-Clause license, and is specifically identified as such.
FAQs
Integrate snakeviz profile visualization into django
We found that django-snakeviz-profiling demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.