you need to do something like this in middleware.py:

from paste.debug.profile import ProfileMiddleware
app = ProfileMiddleware(app)


Chris Curvey wrote:
> I'd like to use Ian Bickings paste.debug.profile module to see where I
> can speed up my app, but I can't quite figure out how to configure it.
> 
> I see in the source that I should add
> 
> middleware.append('paste.profilemiddleware.ProfileMiddleware')
> 
> to a configuration, but I can't figure out where.
> 
> There's also the comment that
> 
> "It also runs in a single-threaded mode, so it is only usable in
> development environments."
> 
> Can anyone shed any light?
> 
> > 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to