Hi!

On Thu, Aug 26, 2010 at 08:31:43AM -0700, writeson wrote:
> I'm interested in profiling my Pylons application to see where
> bottlenecks might be. I see quite a few mentions on the net of using
> paste.debug.profile in some kind of middleware, but I don't see much
> documentation or examples about how to do this. Does anyone have any
> pointers or references that might help me out?

paste.debug.profile is buggy.  I wouldn't use it.

You have several alternatives:

  * repoze.profile

      IIRC I didn't use it because what it aggregated profiling info of
      all requests into one huge profile, while I wanted to see what
      each request was doing separately.  OTOH I haven't looked at it in
      a long while, so don't rely on me completely.

  * keas.profile

      A fork of paste.debug.profile, with some bugs fixed.  Usage
      instructions are here: http://pypi.python.org/pypi/keas.profile

  * Dozer

      Currently the most advanced one, but you have to use Dozer from
      mercurial; the latest release has no support for profiling.
      See http://mg.pov.lt/blog/profiling-with-dozer.html

I'd go with Dozer or keas.profile.

Marius Gedminas
-- 
C is a language that combines all the elegance and power of assembly language
with all the readability and maintainability of assembly language.

Attachment: signature.asc
Description: Digital signature

Reply via email to