From ab24f58bad8c0d4570684cfb02a7d371aba3e8ff Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 27 Jul 2021 13:56:28 +0000 Subject: [PATCH] Parser is now session --- src/Factory/SessionFactory.php | 2 +- src/Util/Profiler.php | 4 ++-- tests/src/Util/ProfilerTest.php | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Factory/SessionFactory.php b/src/Factory/SessionFactory.php index 81ab77b2ca..f4d2dd89fd 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 0f28f23d0a..fb499d8156 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 da0546d1be..3178f7d17a 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