Tuesday, April 24, 2012

Re: Unknown time before app_controller beforeFilter

My Core Processing times are averaging at 800ms.

This is not the norm correct?

I'm not seeing anything that jumps out at me in the xdebug profile. Except App->import with 2.43 in the self column of kcachegrind, called 23 times. 

I've attached the call graph for App->import, is it supposed to look this crazy?

On Monday, April 23, 2012 12:53:18 PM UTC-4, Dan Moseley wrote:
Thanks for the quick replies.

I've set up the debug kit and am looking in the timers section:

I see "Core Processing (Derived) - 650ms"

Any recommendations on where I can dig next?

On Monday, April 23, 2012 5:23:18 AM UTC-4, AD7six wrote:


On Monday, 23 April 2012 03:24:27 UTC+2, Dan Moseley wrote:
Hi All,
Could anyone help me to understand exactly what occurs prior to the first line of the app_controller's beforeFilter?

I'm using the following line on the first line of my app_controller:
round(microtime(true) - $_SERVER['REQUEST_TIME'], 2);

This timer averages between 0.2 and 1.2 seconds.

If anyone has any recommendations it would be much appreciated!

The short answer is cake's bootstrap and any startup for components.

To get more detail:

1) use debug kit
2) generate an xdebug profile (and of course look at it).

AD

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: