Sunday, October 30, 2011

Re: DebugKit Toolbar timeline isn't adding up

On Oct 30, 11:54 am, Alex Bovey <a...@bovey.co.uk> wrote:
> Hi all,
>
> I'm trying to optimise a controller action in my app (a product
> search) and the debug toolbar timeline isn't adding up properly at all
> - please see this screenshot:
>
> http://www.bovey.co.uk/debugkit.png

It doesn't necessarily have to add up. Timers have a start and an end
time - and apparently a lot happened inbetween your controller action
and the render process.

>
> The total request time is 7152ms but none of my actions or views
> account for this, as if some phantom code is at work.  

That's a dramatized but more or less accurate description of the
truth.

> Equally the
> peak memory usage is way higher than the breakdown below it shows.

which just means (can you guess? the numbers aren't lying).

>
> Any ideas where this may be coming from?  This is v1.2.7.

Well that's an old version of cake.

Maybe by investigating the old fashioned way - from the numbers you've
posted you can start by investigating if it comes from: some code that
gets executed inbetween your controller and view rendering.

If debug kit is not the first component in your components array
(that's a bad idea), that would explain both the holes and the numbers
- I'd fix that first if I were you.

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: