mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
reorder startup events to fix overlapping
current the `request` and `runtime` events overlap with the `init` event which makes it hard to create usefull visualizations. this reorders things a bit to remove an overlap Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
e700c3cd33
commit
a67bf03ac0
1 changed files with 5 additions and 5 deletions
10
lib/base.php
10
lib/base.php
|
|
@ -595,12 +595,7 @@ class OC {
|
|||
|
||||
$eventLogger = \OC::$server->getEventLogger();
|
||||
$eventLogger->log('autoloader', 'Autoloader', $loaderStart, $loaderEnd);
|
||||
$eventLogger->start('request', 'Full request after autoloading');
|
||||
register_shutdown_function(function () use ($eventLogger) {
|
||||
$eventLogger->end('request');
|
||||
});
|
||||
$eventLogger->start('boot', 'Initialize');
|
||||
$eventLogger->start('runtime', 'Runtime (total - autoloader)');
|
||||
|
||||
// Override php.ini and log everything if we're troubleshooting
|
||||
if (self::$config->getValue('loglevel') === ILogger::DEBUG) {
|
||||
|
|
@ -797,6 +792,11 @@ class OC {
|
|||
}
|
||||
$eventLogger->end('boot');
|
||||
$eventLogger->log('init', 'OC::init', $loaderStart, microtime(true));
|
||||
$eventLogger->start('runtime', 'Runtime');
|
||||
$eventLogger->start('request', 'Full request after boot');
|
||||
register_shutdown_function(function () use ($eventLogger) {
|
||||
$eventLogger->end('request');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue