Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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: 20


DJANGO_VIEW_TIMER_WARNING_LEVEL

Set number of milliseconds for warnings

Default value: 300


DJANGO_VIEW_TIMER_LOG_FORMAT

Log Format

Default Value:

"View: {view}\tModule: {module}\tFunction: {function}\tExecution Time: {time} msecs"

Screenshot

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
Release History

Release History

This version
History Node

0.2

History Node

0.1.9

History Node

0.1.8

History Node

0.1.7

History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-view-timer-0.2.macosx-10.10-intel.exe (68.5 kB) Copy SHA256 Checksum SHA256 any Windows Installer Jul 3, 2015
django-view-timer-0.2.tar.gz (3.7 kB) Copy SHA256 Checksum SHA256 Source Jul 3, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting