Howdy!

On 2009-11-03, at 4:02 PM, kgk wrote:

> Is there a preferred or suggested package for pylons/turbogears  
> performance testing? I would like to integrate performance measures  
> into our nosetests and wondered if anybody could give some  
> recommendations?

I've been using repoze.profile.profiler's  
AccumulatingProfileMiddleware configured to discard the first request  
(to avoid template compilation and buried import statement overhead on  
the initial request).  I use the following code in my <pkg>/config/ 
middleware.py: make_app function:

         from repoze.profile.profiler import  
AccumulatingProfileMiddleware

         app = AccumulatingProfileMiddleware(
                app,
                log_filename = config.get('web.profile.log',  
'profile.prof'),
                discard_first_request = asbool(config.get 
('web.profile.discard', 'true')),
                flush_at_shutdown = asbool(config.get 
('web.profile.flush', 'true')),
                path = config.get('web.profile.path', '/__profile__')
            )

        — Alice.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to