Status: | Work in progress |
---|
Table of Contents
TurboGears does not come with a built-in profiler, but an easy to use WSGI application profiler is just an easy_install away!
First, install it with easy_install:
easy_install -i http://dist.repoze.org/simple repoze.profile
Next add it to your WSGI stack in middleware.py:
TODO: add code sample
Just fire up a browser (or functional test-runner like twill, ab (apache bench), or whatever). The repoze.profile middleware will profile everything above it in the WSGI stack.
There’s a built in web based view of your profile data available....
Reference: