Skip to main content

A database access profiler for Django-based applications that can be ran in production with minimal performace overhead.

Project description

Django-live-profiler is a low-overhead data access and code profiler for Django-based applications. For more information, check out http://invitebox.github.com/django-live-profiler/

Installation

  1. Run pip install django-live-profiler

  2. Add ‘profiler’ app to INSTALLED_APPS

  3. Add ‘profiler.middleware.ProfilerMiddleware’ to MIDDLEWARE_CLASSES

  4. Optionally add ‘profiler.middleware.StatProfMiddleware’ to MIDDLEWARE_CLASSES to enable Python code statistical profiling (using statprof). WARNING: this is an experimental feature, beware of possible incorrect output.

  5. Add url(r’^profiler/’, include(‘profiler.urls’)) to your urlconf

Usage

In order to start gathering data you need to start the aggregation server:

$ aggregated --host 127.0.0.1 --port 5556

Visit http://yoursite.com/profiler/ for results.

Project details


Download files

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

Source Distribution

django-live-profiler-0.0.9.tar.gz (66.6 kB view details)

Uploaded Source

File details

Details for the file django-live-profiler-0.0.9.tar.gz.

File metadata

File hashes

Hashes for django-live-profiler-0.0.9.tar.gz
Algorithm Hash digest
SHA256 bbd2b6083e33c403e5024379cb3d89ed6c07b105fbef3502327085913d60b925
MD5 5f28c6d0025ed60f0f8b5283cde177bb
BLAKE2b-256 b05b45e72225223a3b1760c148b7f07450b1e96a5364d62fc07d0f7bfe68655a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page