LaunchpadDevUtils

Not logged in - Log In / Register

Revision 1 as of 2012-09-08 09:06:35

Clear message

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:

  1. Install lp-dev-utils as shown above
  2. Change your apache log to include the time it takes to serve the response:

    LogFormat "%h %l %u %t \"%r\" %>s %b %D"
  3. Create a customised ini file that maps your URL's to categories / templates / etc.
  4. Cron it all up.