8 Commits
6 changed files with 48 additions and 1 deletions

No files matched your search

View File
File renamed without changes.
+1
View File
@@ -24,6 +24,7 @@
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
position: relative;
}
#wpadminbar .laps-timeline .event {
float: left;
+1
View File
@@ -37,6 +37,7 @@
background-color: @timeline-bg;
border-radius: 4px;
.box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
position: relative;
}
.laps-timeline .event {
+7 -1
View File
@@ -34,7 +34,7 @@ There are also additional optional timelines, displaying:
Laps is a Composer package and can be installed in plugin directory via:
composer create-project rarst/laps --repository-url=http://rarst.net
composer create-project rarst/laps --no-dev
# Frequently Asked Questions
@@ -42,6 +42,12 @@ None... Yet.
# Changelog
## 1.2
- merged RP with additional core events in admin
- implemented (ballpark) toolbar event
- fixed issue with event offsets in timelines
## 1.1
- added SQL timeline
+37
View File
@@ -42,6 +42,32 @@ class Core_Events extends Laps_Events {
'category' => 'core',
);
$stops['admin_init'][- 1] = array(
'event' => 'Core Admin Init',
'category' => 'core',
);
$stops['admin_init'][ PHP_INT_MAX -1 ] = array(
'action' => 'stop',
'event' => 'Core Admin Init',
'category' => 'core',
);
$stops['_admin_menu'][- 1] = array(
'event' => 'Admin Menu',
'category' => 'core',
);
$stops['admin_menu'][ PHP_INT_MAX -1 ] = array(
'action' => 'stop',
'event' => 'Admin Menu',
'category' => 'core',
);
$stops['admin_bar_menu'][-1] = array(
'event' => 'Toolbar',
'category' => 'core',
);
$stops['loop_start'][10] = array(
'event' => 'Main Loop',
'category' => 'theme',
@@ -53,6 +79,17 @@ class Core_Events extends Laps_Events {
'category' => 'theme',
);
$stops['admin_enqueue_scripts'][10] = array(
'event' => 'Admin Print Scripts',
'category' => 'core',
);
$stops['admin_print_scripts'][10] = array(
'action' => 'stop',
'event' => 'Admin Print Scripts',
'category' => 'core',
);
return $stops;
}
}
+2
View File
@@ -229,6 +229,8 @@ class Laps {
)
);
self::$stopwatch->stop( 'Toolbar' );
$events = self::$stopwatch->getSectionEvents( '__root__' );
$start = $timestart * 1000;
$end = microtime( true ) * 1000;