Diff for "GavinPanella"

Not logged in - Log In / Register

Differences between revisions 2 and 3
Revision 2 as of 2008-12-05 09:44:50
Size: 400
Editor: allenap
Comment:
Revision 3 as of 2009-02-04 16:21:59
Size: 1145
Editor: allenap
Comment:
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
----

== 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`.

Gavin Panella

https://launchpadlibrarian.net/7115160/Hackergotchi.jpg

I work on Launchpad Bugs, also known as Malone.

Email

<gavin.panella AT SPAMFREE canonical DOT com>

Launchpad

~allenap


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.


CategoryHomepage

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