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
Close
Hashes for sp_django_profiler-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af15c313f31a0288e821174b8d83c6356615cc989e29152a6ec0169bfdb69561 |
|
MD5 | 3fbfbd7f3798592f83e1f23c1be1dc9c |
|
BLAKE2b-256 | 47691ea40acf9252f90bf6c47ad16d50dabd02ec271784bc44740d2aa205a093 |