]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Profiler.php
Display the publish time in the local timezone
[friendica.git] / src / Util / Profiler.php
index 189a7e2e065a88c2025c5ed8dd1c146ec68de8c5..fb499d815613f4ff40f2e5cd12a9e0456e94a8df 100644 (file)
@@ -126,7 +126,6 @@ class Profiler implements ContainerInterface
                $callstack = $callstack ?: System::callstack(4, $value == 'rendering' ? 0 : 1);
 
                if (!isset($this->performance[$value])) {
-                       // Prevent ugly E_NOTICE
                        $this->performance[$value] = 0;
                }
 
@@ -199,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;
@@ -221,7 +220,7 @@ class Profiler implements ContainerInterface
                $this->callstack['network'] = [];
                $this->callstack['file'] = [];
                $this->callstack['rendering'] = [];
-               $this->callstack['parser'] = [];
+               $this->callstack['session'] = [];
        }
 
        /**
@@ -283,6 +282,7 @@ class Profiler implements ContainerInterface
                                }
                        }
                }
+
                if (isset($this->callstack["rendering"])) {
                        $output .= "\nRendering:\n";
                        foreach ($this->callstack["rendering"] as $func => $time) {