Refactored Toolbar event.

This commit is contained in:
Andrey Savchenko committed 2014-05-18 22:41:45 +03:00
1 parent 54bb79b202
commit 00ba356da7
2 files changed
+3 -6

No files matched your search

+1 -6
View File
@@ -64,12 +64,7 @@ class Core_Events extends Laps_Events {
); );
$stops['admin_bar_menu'][-1] = array( $stops['admin_bar_menu'][-1] = array(
'event' => 'Admin Bar', 'event' => 'Toolbar',
'category' => 'core',
);
$stops['admin_bar_menu'][ PHP_INT_MAX -1 ] = array(
'action' => 'stop',
'event' => 'Admin Bar',
'category' => 'core', 'category' => 'core',
); );
+2
View File
@@ -229,6 +229,8 @@ class Laps {
) )
); );
self::$stopwatch->stop( 'Toolbar' );
$events = self::$stopwatch->getSectionEvents( '__root__' ); $events = self::$stopwatch->getSectionEvents( '__root__' );
$start = $timestart * 1000; $start = $timestart * 1000;
$end = microtime( true ) * 1000; $end = microtime( true ) * 1000;