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
Metadata
Release files for django-view-timer 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-view-timer-0.2.tar.gz | 3.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django-view-timer-0.2.macosx-10.10-intel.exe | Details |
Total release size: 72.2 kB
Release files / django-view-timer-0.2.tar.gz
| Download URL | django-view-timer-0.2.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1ab5f7e0639dc6a773347fe1461e67363f59ba56eba4153711afdcd4c1d97db
|
|
BLAKE2b-256 checksum How to use checksums |
df75879102eb913bb1fb5cc3455011d73a7081b23535285380c2e26d7794b17f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django-view-timer-0.2.macosx-10.10-intel.exe
| Download URL | django-view-timer-0.2.macosx-10.10-intel.exe |
|---|---|
| Size | 68.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
daee10191c3b0c53143029dc89d2eaf67b4ee84b1ecc4ba9840f7855e36ec475
|
|
BLAKE2b-256 checksum How to use checksums |
2d079b53444cf89a785812fd41013c3dba08678e6ef4bc6c0cf1fb8b212b5e4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-view-timer 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.