On Tue, Apr 28, 2009 at 04:36:16PM -0400, Ross Vandegrift wrote:
> Hey everyone,
>
> I noticed when shuffling between config files that my profiling setup
> is busted. In my middleware.py:
>
> # CUSTOM MIDDLEWARE HERE (filtered by error handling middlewares)
> if config.get('profile'):
> from paste.debug.profile import ProfileMiddleware
> app = ProfileMiddleware(app, global_conf)
>
> I used to get a yellow div at the bottom of the screen with the paster
> profiling output. Now, I get an empty yellow div and the profiling
> data goes to the console.It's a bug: <http://trac.pythonpaste.org/pythonpaste/ticket/204>. One of many paste.debug.profile bugs that make it essentially unusable. > This isn't any major deal - just an oddness I noticed. Is there > something I need to change to use ProfileMiddleware? Try keas.profile instead. Or repoze.profile, if you prefer a single aggregated profile of all the requests instead of yellow divs. Marius Gedminas -- Life’s too short to do things that aren’t interesting, if you are in the fortunate position of being able to choose to do things that interest you. -- John Scalzi
signature.asc
Description: Digital signature
