diff --git a/src/Factory/SessionFactory.php b/src/Factory/SessionFactory.php index 81ab77b2c..f4d2dd89f 100644 --- a/src/Factory/SessionFactory.php +++ b/src/Factory/SessionFactory.php @@ -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 { diff --git a/src/Util/Profiler.php b/src/Util/Profiler.php index 0f28f23d0..fb499d815 100644 --- a/src/Util/Profiler.php +++ b/src/Util/Profiler.php @@ -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'] = []; } /** diff --git a/tests/src/Util/ProfilerTest.php b/tests/src/Util/ProfilerTest.php index da0546d1b..3178f7d17 100644 --- a/tests/src/Util/ProfilerTest.php +++ b/tests/src/Util/ProfilerTest.php @@ -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