Parser is now session

pull/10551/head
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 = []) 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; $session = null;
try { try {

View File

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

View File

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