On Fri, 10 Nov 2006 18:56:26 +0100
"Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:

> 
> kerinin schrieb:
> > I'd like to keep track of how long it's taking my server to respond
> > to requests and keep it in the access log file.  Is there an easy
> > way to do this, or should i write it into the controller definition?
> 
> 
> It shouldn't be too hard to make a TG-project use the python
> profiler. If its output suits you, you're done.
> 
> If not - well, it shouldn't be too hard to create a timing 
> decorator/metaclass. But I'm not aware of one exiting.
> Diez

The python profiler is nice for profiling your app, but isn't something
you'd use in production.  It slows things down way too much.

Better idea would be a metaclass or decorator to calculate timings.

Jason

Attachment: signature.asc
Description: PGP signature

Reply via email to