Oh, I think all the database access and other stuff you mentioned is
done in between the begin render end end render. It clearly looks like
it from the debugging output, there's a lot more going on than just
"rendering".

But the whole @Shell think sounds even easier anyway, maybe we should
give that a try some time.


On 9/26/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
But I think renderComponent() would just be the rendering time of the page 
similar to what I'm doing in the Border component? Maybe I should put some slow 
down's in to double check.

-----Original Message-----
From: Lutz Hühnken [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 26, 2006 1:38 PM
To: Tapestry users
Subject: Re: Timing processing time of a page


I believe if your set the log level for tapestry to "debug", as in
putting a line like "log4j.logger.org.apache.tapestry=debug" in your
log4j.properties, it will output such information.

Like
19:30:56,135 DEBUG BaseComponent:89 - Begin render Home
19:30:57,807 DEBUG BaseComponent:95 - End render Home

It would probably be nicer to see the actual time amount then just the
two logging timestamps... I guess you could just modify/overwrite
BaseComponent.renderComponent to output that.

Hth,
Lutz



On 9/26/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi. I'm wondering if anyone has done any simple timing of the processing for 
a page?
>
> I've changed my border slightly so at the start it creates a Date, and at the 
end creates another and determines the difference.
>
> However, I think this only works out to be the render time of the page 
itself, not the processing time to get all the information for that page (eg. slow 
DB queries).
>
> Maybe something like this would go in a Servlet method? I'm really unsure.
>
> Anyone have any insight? This way I can work on tuning my application and 
have some hard numbers to see if, on average, they are getting smaller or not.
>
> Thanks,
> Greg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to