Where to get it
bzr branch lp:lp-dev-utils
How to install
This is a standard buildout project; it has a makefile for convenience:
make bin/buildout bin/buildout
And then you can run any script using bin/py:
bin/py page-performance-report.py
tools
There are a bunch of tools contained in lp-dev-utils, including line of code counters, log analysers, commercial project management API scripts and so forth.
page-performance-report
The page performance report is one of the key tools used by Launchpad to gather an aggregate view on application performance. It can run in two modes: zope trace log, and apache log mode.
To use the page performance report, there are four steps:
- Install lp-dev-utils as shown above
Change your apache log to include the time it takes to serve the response:
LogFormat "%h %l %u %t \"%r\" %>s %b %D"
- Create a customised ini file that maps your URL's to categories / templates / etc.
- Cron it all up.