Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5cea91d656 | ||
|
|
f568830513 | ||
|
|
00ba356da7 | ||
|
|
54bb79b202 | ||
|
|
334d1cbacc | ||
|
|
32d8752261 | ||
|
|
84eba6e39d | ||
|
|
b774292fda |
No files matched your search
File renamed without changes.
@@ -24,6 +24,7 @@
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
-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);
|
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
#wpadminbar .laps-timeline .event {
|
#wpadminbar .laps-timeline .event {
|
||||||
float: left;
|
float: left;
|
||||||
|
|||||||
@@ -37,6 +37,7 @@
|
|||||||
background-color: @timeline-bg;
|
background-color: @timeline-bg;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
.box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
|
.box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.laps-timeline .event {
|
.laps-timeline .event {
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ There are also additional optional timelines, displaying:
|
|||||||
|
|
||||||
Laps is a Composer package and can be installed in plugin directory via:
|
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
|
# Frequently Asked Questions
|
||||||
|
|
||||||
@@ -42,6 +42,12 @@ None... Yet.
|
|||||||
|
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 1.2
|
||||||
|
|
||||||
|
- merged RP with additional core events in admin
|
||||||
|
- implemented (ballpark) toolbar event
|
||||||
|
- fixed issue with event offsets in timelines
|
||||||
|
|
||||||
## 1.1
|
## 1.1
|
||||||
|
|
||||||
- added SQL timeline
|
- added SQL timeline
|
||||||
|
|||||||
@@ -42,6 +42,32 @@ class Core_Events extends Laps_Events {
|
|||||||
'category' => 'core',
|
'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(
|
$stops['loop_start'][10] = array(
|
||||||
'event' => 'Main Loop',
|
'event' => 'Main Loop',
|
||||||
'category' => 'theme',
|
'category' => 'theme',
|
||||||
@@ -53,6 +79,17 @@ class Core_Events extends Laps_Events {
|
|||||||
'category' => 'theme',
|
'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;
|
return $stops;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user