]> git.mxchange.org Git - friendica.git/commitdiff
Parser is now session
authorMichael <heluecht@pirati.ca>
Tue, 27 Jul 2021 13:56:28 +0000 (13:56 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 27 Jul 2021 13:56:28 +0000 (13:56 +0000)
src/Factory/SessionFactory.php
src/Util/Profiler.php
tests/src/Util/ProfilerTest.php

index 81ab77b2cae9e29cd13f010e30bbf3234f615e08..f4d2dd89fd7feb0350238b0ecb8116cd9aed3b9e 100644 (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 {
index 0f28f23d0ab9c31ab7adc4f40171e248a6c74a5b..fb499d815613f4ff40f2e5cd12a9e0456e94a8df 100644 (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'] = [];
        }
 
        /**
index da0546d1bed9bcf1ac58d83ce6a63e5dbb21489a..3178f7d17af913563f387eb15b914b170fe5b49a 100644 (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