Parser is now session

This commit is contained in:
Michael 2021-07-27 13:56:28 +00:00
parent c03fb998f4
commit ab24f58bad
3 changed files with 6 additions and 6 deletions

View file

@ -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 {

View file

@ -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'] = [];
}
/**

View file

@ -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