Tools for profiling of code and Django queries
Project description
django-profiler
Useful tool to profile code and Django queries.
Example
from django_profiler.profile import Profiler
with Profiler(name='my-profiler'):
print("Hello World!")
Output:
Hello World!
Profiler: my-profiler
Number of Queries : 0
Finished in : 0.00s
2 function calls in 0.000 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 0.000 0.000 profiling.py:45(__exit__)
1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sp-django-profiler-1.0.0.tar.gz
.
File metadata
- Download URL: sp-django-profiler-1.0.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5829f81e0e5755407033cb75010d8e063299d8c1dfea382d8b26e4b8c04d7d6 |
|
MD5 | af82b3f1804995ce8ddf640b2f34ed93 |
|
BLAKE2b-256 | 7782e367089b69f7c69f95bc6955b09c3a595946c76af38ec7496766eeb2376c |
File details
Details for the file sp_django_profiler-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: sp_django_profiler-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af15c313f31a0288e821174b8d83c6356615cc989e29152a6ec0169bfdb69561 |
|
MD5 | 3fbfbd7f3798592f83e1f23c1be1dc9c |
|
BLAKE2b-256 | 47691ea40acf9252f90bf6c47ad16d50dabd02ec271784bc44740d2aa205a093 |