function increaseNotificationCount($className, $method) { parent::increaseNotificationCount(); if (self::$showProfiler) { echo "after {$className} -> {$method} <br>"; echo "-"; Piwik::printTimer(); echo "<br>"; echo "-"; Piwik::printMemoryLeak(); echo "<br>"; } }
/** * Use notification counter to profile runtime execution * time and memory usage. */ function increaseNotificationCount() { parent::increaseNotificationCount(); if (self::$showProfiler && func_num_args() == 1) { $callback = func_get_arg(0); if (is_array($callback)) { $className = is_object($callback[0]) ? get_class($callback[0]) : $callback[0]; $method = $callback[1]; echo "after {$className} -> {$method} <br />"; echo "-"; Piwik::printTimer(); echo "<br />"; echo "-"; Piwik::printMemoryLeak(); echo "<br />"; } } }
/** * Called at the end of the page generation * */ function __destruct() { try { Piwik::printSqlProfilingReportZend(); Piwik::printQueryCount(); Piwik::printTimer(); } catch(Exception $e) {} }
function increaseNotificationCount() { parent::increaseNotificationCount(); if (self::$showProfiler && func_num_args() == 2) { $className = func_get_arg(0); $method = func_get_arg(1); echo "after {$className} -> {$method} <br>"; echo "-"; Piwik::printTimer(); echo "<br>"; echo "-"; Piwik::printMemoryLeak(); echo "<br>"; } }