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 dpt_url urlpatterns = patterns('', url(r'view$', fun_base_test_view, name='fbv_view'), dpt_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.1.macosx-10.10-intel.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c4aef5009e3c04fd1b81f9ce08362c04eb4f79a3496e3675993a79f2a232baa |
|
MD5 | 15fc6f65958e7ebed15ef2ad76a66f7c |
|
BLAKE2b-256 | 10f39365c409141e861fc068a0c3850c5b252a9127d188118683f551d3bf4cc7 |