RE: Timing processing time of a page

2006-09-26 Thread Greg.L.Cormier
Okay I added some delays in I see what's happening.

My border solution does work (although the Shell solution intrigues me, more 
details anyone?)

The thing is, let's say you have an OK button that, per say, saves your entry. 
That saving wouldn't be included in the next pages render time since you do 
your logic, then cycle.redirect() that might be a bit tricky.

Greg

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


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]


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



Re: Timing processing time of a page

2006-09-26 Thread Lutz Hühnken

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]



RE: Timing processing time of a page

2006-09-26 Thread James Carman
I'm on tap4, too.  Maybe it's because I'm using a @Shell component?  I
always just thought it happened automagically.  :-)  


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 1:32 PM
To: users@tapestry.apache.org
Subject: RE: Timing processing time of a page

James,

Does this need to be enabled somehow? I don't see it in the HTML source.
tap 4.

Thanks,
Greg

-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 26, 2006 1:25 PM
To: 'Tapestry users'
Subject: RE: Timing processing time of a page


Look at the bottom of the generated source.  It will spit out the processing
time automatically for you.  For example:





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 1:19 PM
To: users@tapestry.apache.org
Subject: Timing processing time of a page

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]



RE: Timing processing time of a page

2006-09-26 Thread Greg.L.Cormier
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]



Re: Timing processing time of a page

2006-09-26 Thread Jesse Kuhnert

I think you just need to use the @Shell component.

On 9/26/06, Lutz Hühnken <[EMAIL PROTECTED]> wrote:


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]





--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: Timing processing time of a page

2006-09-26 Thread Lutz Hühnken

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]



RE: Timing processing time of a page

2006-09-26 Thread Greg.L.Cormier
James,

Does this need to be enabled somehow? I don't see it in the HTML source. 
tap 4.

Thanks,
Greg

-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 26, 2006 1:25 PM
To: 'Tapestry users'
Subject: RE: Timing processing time of a page


Look at the bottom of the generated source.  It will spit out the processing
time automatically for you.  For example:





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 1:19 PM
To: users@tapestry.apache.org
Subject: Timing processing time of a page

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]



RE: Timing processing time of a page

2006-09-26 Thread James Carman
Look at the bottom of the generated source.  It will spit out the processing
time automatically for you.  For example:





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 1:19 PM
To: users@tapestry.apache.org
Subject: Timing processing time of a page

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]