Diff for "GavinPanella"

Not logged in - Log In / Register

Differences between revisions 22 and 23
Revision 22 as of 2011-08-02 10:42:55
Size: 2788
Editor: allenap
Comment:
Revision 23 as of 2011-08-02 10:46:20
Size: 2097
Editor: allenap
Comment:
Deletions are marked like this. Additions are marked like this.
Line 27: Line 27:
 * [[/ProfilingLaunchpad|Profiling Launchpad]]
Line 47: Line 48:
== Profiling Launchpad ==

 * Apply: {{{
=== modified file 'configs/development/launchpad-lazr.conf'
--- configs/development/launchpad-lazr.conf 2009-01-21 03:21:56 +0000
+++ configs/development/launchpad-lazr.conf 2009-02-04 16:01:04 +0000
@@ -5,6 +5,10 @@
 [meta]
 extends: ../../lib/canonical/config/schema-lazr.conf

+[profiling]
+profile_requests: True
+profile_dir: /tmp/profiling
+
 [archivepublisher]
 root: /var/tmp/archive
}}}

 * `mkdir /tmp/profiling`

 * `make run` and use the application.

 * `wget http://jrfonseca.googlecode.com/svn/trunk/gprof2dot/gprof2dot.py`

 * `python gprof2dot.py -n 1 -f pstats /tmp/profiling/''blah.prof'' | dot -Tpng -o profiling.png`

 * Look at `profiling.png`.

GavinPanella (last edited 2012-07-17 11:50:09 by allenap)