Parser is now session

pull/10551/head
Michael 2021-07-27 13:56:28 +00:00
rodzic c03fb998f4
commit ab24f58bad
3 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -58,7 +58,7 @@ class SessionFactory
*/
public function createSession(App\Mode $mode, App\BaseURL $baseURL, IConfig $config, Database $dba, ICache $cache, LoggerInterface $logger, Profiler $profiler, array $server = [])
{
$profiler->startRecording('parser');
$profiler->startRecording('session');
$session = null;
try {

Wyświetl plik

@ -198,7 +198,7 @@ class Profiler implements ContainerInterface
$this->performance['network'] = 0;
$this->performance['file'] = 0;
$this->performance['rendering'] = 0;
$this->performance['parser'] = 0;
$this->performance['session'] = 0;
$this->performance['marktime'] = 0;
$this->performance['marktime'] = microtime(true);
$this->performance['classcreate'] = 0;
@ -220,7 +220,7 @@ class Profiler implements ContainerInterface
$this->callstack['network'] = [];
$this->callstack['file'] = [];
$this->callstack['rendering'] = [];
$this->callstack['parser'] = [];
$this->callstack['session'] = [];
}
/**

Wyświetl plik

@ -99,14 +99,14 @@ class ProfilerTest extends MockedTest
'name' => 'rendering',
'functions' => ['test', 'it7'],
],
'parser' => [
'session' => [
'timestamp' => time(),
'name' => 'parser',
'name' => 'session',
'functions' => ['test', 'it8'],
],
'marktime' => [
'timestamp' => time(),
'name' => 'parser',
'name' => 'session',
'functions' => ['test'],
],
// This one isn't set during reset