]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Profiler.php
Move mod/rsd_xml to src/Module/ReallySimpleDiscovery
[friendica.git] / src / Util / Profiler.php
index c8c56337180fd04100e1f3673c994bf08efde667..fe72efce40beec2e623598e3c6efd35c050d3f54 100644 (file)
@@ -42,6 +42,18 @@ class Profiler implements ContainerInterface
                return $this->rendertime;
        }
 
+       /**
+        * Updates the enabling of the current profiler
+        *
+        * @param bool $enabled
+        * @param bool $renderTime
+        */
+       public function update($enabled = false, $renderTime = false)
+       {
+               $this->enabled = $enabled;
+               $this->rendertime = $renderTime;
+       }
+
        /**
         * @param bool $enabled           True, if the Profiler is enabled
         * @param bool $renderTime        True, if the Profiler should measure the whole rendertime including functions