[Repoze-checkins] r711 - www/trunk/blog.repoze.org/entries

Chris McDonough chrism at agendaless.com
Wed Feb 20 14:59:03 UTC 2008


Author: Chris McDonough <chrism at agendaless.com>
Date: Wed Feb 20 09:59:03 2008
New Revision: 711

Log:
Add a blog entry about repoze.profile.


Added:
   www/trunk/blog.repoze.org/entries/repozeprofile-0_2-released.txt

Added: www/trunk/blog.repoze.org/entries/repozeprofile-0_2-released.txt
==============================================================================
--- (empty file)
+++ www/trunk/blog.repoze.org/entries/repozeprofile-0_2-released.txt	Wed Feb 20 09:59:03 2008
@@ -0,0 +1,40 @@
+repoze.profile 0.2 Released
+#label repoze
+
+<p> A couple weeks ago, Tres quietly created and released of a useful
+piece of middleware called <a
+href="http://svn.repoze.org/repoze.profile/trunk">repoze.profile</a>.
+This middleware sits in the WSGI pipeline and performs aggregate
+Python profiling across all requests to the application(s) on its
+"right hand side".  Ian had some profiling middleware in Paste, but it
+performed profiling of only a single request.</p>
+
+<p>Version 0.2 adds a (butt-ugly-and-utterly-ripped-off-from-Zope)
+browser UI that allows you to sort and filter profiling results.  It
+looks like the image below.</p>
+
+<p><img src="http://static.repoze.org/repozeprofileui.png"/></p>
+
+<p>To get it, do <code>easy_install -i http://dist.repoze.org/simple
+repoze.profile</code>, then wire it up in your WSGI pipeline.  For
+example:</p>
+
+<pre>
+ [pipeline:main]
+ pipeline = egg:repoze.profile#profile
+            egg:Paste#cgitb
+            egg:Paste#httpexceptions
+            myapp
+</pre>
+
+<p>You should then be able to visit <code>/__profile__</code> in your
+browser while talking to your WSGI application to see the profile UI.
+Note that the middleware (by default) discards the first request info,
+so you will need to hit your application a few times to see meaningful
+profile info.</p>
+
+<p>See the <a
+href="http://svn.repoze.org/repoze.profile/trunk/README.txt">README</a>
+for more detailed configuration information.</p>
+
+<p> - Chris </p>


More information about the Repoze-checkins mailing list