Django View Timer
Project description
django-view-timer
Profile execution time for django views
Settings
None of the following settings are mandatory
DJANGO_VIEW_TIMER_ENABLED
Enable/Disable profiler
Default value: True
DJANGO_VIEW_TIMER_MIN_THRESHOLD
Disregards execution time below threshold (in milliseconds)
Default value: 10
DJANGO_VIEW_TIMER_WARNING_LEVEL
Set number of milliseconds for warnings
Default value: 300
DJANGO_VIEW_TIMER_LOG_FORMAT
Log Format
Default Value:
"Module: {module}\tFunction: {function}\tExecution Time: {time} msecs"
Installation
Install using pip
pip install django_view_timer
in urls.py import
from django_view_timer.urls import url as dvt_url urlpatterns = patterns('', url(r'view$', fun_base_test_view, name='fbv_view'), dvt_url(r'profiled_view$', ClassBaseTestView.as_view(), name='cbv_view'), )
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 django-view-timer-0.1.5.macosx-10.10-intel.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5a860f71097b6aa2634968d70bed88986a1cb0e907991e6402f1dc9a564fc2f |
|
MD5 | d950b7f668a44597400eb7c711061402 |
|
BLAKE2b-256 | c0ec4a5f28dc4fe30424386649cecbea9aeb6f04641405d2a922f07005ad8e64 |