I've just finished up a semi-lengthly pylons project and I wanted to
do some profiling of slower sections to find bottle necks. I couldn't
find an easy to use out of the box solution for profiling pylons
applications so I took the liberty of writing my own profiling
middleware. It is adapted from the paste profiling middleware that I
couldn't get to work. It's still a work in progress but I thought I'd
share it here and solicit some feedback.

You can download the middleware file here:
http://www.ajaxlive.com/repo/profilepylons.py

I just stuck it in the lib folder of my app and included it like so:

# YOUR MIDDLEWARE
app = ProfilingMiddleware(app,conf)

in the middleware.py file.

There is some brief documentation in the source.


--~--~---------~--~----~------------~-------~--~----~
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