Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Django Profiling Middleware inspired by Jiri Barton
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
profiling
MANIFEST.in
README.rst
setup.py

README.rst

Profiling APP

Your Django became too slow?

Install

add this to your settings.py

INSTALLED_APPS += ['profiling'] MIDDLEWARE_CLASSES += ['profiling.middleware.InstrumentMiddleware']

pip install pyprof2calltree for cachgrinder

How to do a profiling run

add a get param: "cprofile" to start profiling

add a get param: "profile-stop" to stop profiling

the log will be in the tmp/profiler folder of your system

Inspired by

http://lurkingideas.net/profiling-django-projects-cachegrind/

CacheGrinder

pyprof2calltree -i logfilename.pro -k

or

pyprof2calltree -i logfilename.pro -o callgrinder.logfilename.log

additional Profiling Resources:

TBD
Something went wrong with that request. Please try again.