On Friday, February 08, 2008, Dustin Whittle wrote:
> Also, is it just me or could the web debug timers use a refactor? (they
> seem to always not add up)

I think it's impossible for them to add up.  I haven't looked too extensively 
at this part of the source, but it seems the toolbar timer is the time for 
the entire request and the pop down contains specific timers that can appear 
in various parts of the source code.

It can't add up because timers can contain other timers:

$timer1 = sfTimerManager::getTimer('foo');
do_something();
$timer2 = sfTimerManager::getTimer('bar');

do_something();

$timer1->addTime();
do_something();
$timer2->addTime();

$timer1 now includes part of $timer2.

Of course, it will be cool to fix this, but I don't know what the new behavior 
should be.  

Carl

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to