Pekka Jääskeläinen wrote:
> Hello,
> 
> How am I supposed to use the paste.debug.profile to get profiling data
> for the web pages? It seems to have a middleware, but what should I
> add to the configuration file exactly to get it running?
> 
> I also tried to use the decorator for a single controller action like this:
> 
>     @profile_decorator()
>     def index(self):
> 
> This gave interesting results: when I loaded the index page, paster server
> just exited and returned a blank page.

Exited like a segfault?  It's possible the profiler doesn't interact 
well with some module you are using (something in C), or that the 
profiler itself is acting odd.  Any segfault is a sign of a bug 
somewhere in the Python interpreter (unlikely) or some C module (more 
likely), or sometimes Python code which is doing something diabolical 
(which would be a bug in the Python interpreter still, but some bug that 
isn't often encountered).  Since paste.debug.profile doesn't have any C 
code, I'd be most inclined to think it's a bad interaction of some C 
module and the profiler.

> Is this a bug I should open a ticket for or an uneducated user's error?

It sounds like some kind of Python installation error.


-- 
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
             : Write code, do good : http://topp.openplans.org/careers

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