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 ( patterns as dvt_patterns, url as dvt_url ) urlpatterns = patterns('', url(r'^$', index, name='index'), ) dvt_urlpatterns = dvt_patterns('', dvt_url(r'dvt_fun_base_str$', 'djangoproject.views.fun_base_test_view', name='dvt_fb_str_view'), dvt_url(r'dvt_fun_base$', fun_base_test_view, name='dvt_fb_view'), dvt_url(r'dvt_class_base$', ClassBaseTestView.as_view(), name='dvt_cb_view'), ) urlpatterns += dvt_urlpatterns
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.8.macosx-10.10-intel.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ec7c2ddff62261a99e4bdc146694afbef9caba471da3eb74c01b0a9bbd20c60 |
|
MD5 | 77dd4a4f8a543d35f91527c226d52434 |
|
BLAKE2b-256 | d2fd8dff1024b3a212ca70ca3c8a2c190108a2130685601aa385c34d4790a1d1 |