Django Debug Toolbar Line Profile Panel
The Django Debug Toolbar is a configurable set of panels that display various debug information about the current request/response and when clicked, display more details about the panel’s content.
This package provides a panel that incorporates output from line_profiler
line_profiler is only compatible with the 2.x branch of python. This panel will only function with django_debug_toolbar>=1.0, before that it’s functionality was contained in the debug_toolbar.panels.profiling.ProfilingPanel
This Django Debug Toolbar panel is released under the BSD license, like Django and the Django Debug Toolbar. If you like it, please consider contributing!
The Django Debug Toolbar was originally created by Rob Hudson in August 2008 and was further developed by many contributors.
Installation
To install the line_profiler panel, first install this package with pip install django-debug-toolbar-line-profiler, then add debug_toolbar_line_profiler to the INSTALLED_APPS:
INSTALLED_APPS = (
...
'debug_toolbar_line_profiler',
)
and add the panel to DEBUG_TOOLBAR_PANELS:
DEBUG_TOOLBAR_PANELS = (
...
'debug_toolbar_line_profiler.panel.ProfilingPanel',
)
Configuration
By default, the panel will profile your view function. If you use class based views the panel will profile all functions on the class that don’t start with _. If you want additional code to be profiled, add the @profile_additional decorator like so:
from debug_toolbar_line_profiler import profile_additional
from boto.s3.connection import S3Connection
...
@profile_additional(S3Connection.make_request)
def your_view_code(*args, **kwargs):
...
Metadata
Release files for django-debug-toolbar-line-profiler 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-debug-toolbar-line-profiler-0.4.0.tar.gz | 6.5 kB | Without provenance | Details for django-debug-toolbar-line-profiler-0.4.0.tar.gz |
Release files / django-debug-toolbar-line-profiler-0.4.0.tar.gz
| Download URL | django-debug-toolbar-line-profiler-0.4.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5efe22343f0c11c25233fcab6465a361ce01a8c9237eac64584c19f6f0744033
|
|
BLAKE2b-256 checksum How to use checksums |
ab4756247452a0a2f66206335d14704547335799accaac0de9a9933989dd50d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-debug-toolbar-line-profiler 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.