Re: DebugKit Toolbar timeline isn't adding up

2011-10-31 Thread Alex Bovey
On Sun, Oct 30, 2011 at 4:59 PM, AD7six andydawso...@gmail.com wrote:

 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.

Thanks Andy - it's a good point.

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

 Well that's an old version of cake.

Granted.

 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.

I'm not overly familiar with Cake's core architecture, so what code
would this be?  i.e. something in component / helper / behavior?  I
was wrongly under the impression that the rendering would start as
soon as the controller action had finished...

 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.

It wasn't the first component but it is now!

Thanks for any help you can give Andy.

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


DebugKit Toolbar timeline isn't adding up

2011-10-30 Thread Alex Bovey
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

The total request time is 7152ms but none of my actions or views account
for this, as if some phantom code is at work.  Equally the peak memory
usage is way higher than the breakdown below it shows.

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

Thanks all,

Alex





-- 
Alex Bovey
Web Developer | Alex Bovey Consultancy Ltd
Registered in England  Wales no. 6471391 | VAT no. 934 8959 65
a...@bovey.co.uk | t 0844 567 8995 | m 07828 649386 | f 0870 288 9533
PHP | MySQL | AJAX | XHTML | CSS | Javascript | XML | W3C Accessibility

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


DebugKit Toolbar timeline isn't adding up

2011-10-30 Thread Alex Bovey
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

The total request time is 7152ms but none of my actions or views
account for this, as if some phantom code is at work.  Equally the
peak memory usage is way higher than the breakdown below it shows.

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

Thanks all,

Alex

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: DebugKit Toolbar timeline isn't adding up

2011-10-30 Thread AD7six


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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php