本文整理匯總了PHP中Piwik::printTimer方法的典型用法代碼示例。如果您正苦於以下問題:PHP Piwik::printTimer方法的具體用法?PHP Piwik::printTimer怎麽用?PHP Piwik::printTimer使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Piwik
的用法示例。
在下文中一共展示了Piwik::printTimer方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: increaseNotificationCount
function increaseNotificationCount($className, $method)
{
parent::increaseNotificationCount();
if (self::$showProfiler) {
echo "after {$className} -> {$method} <br>";
echo "-";
Piwik::printTimer();
echo "<br>";
echo "-";
Piwik::printMemoryLeak();
echo "<br>";
}
}
示例2: increaseNotificationCount
/**
* 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 />";
}
}
}
示例3: __destruct
/**
* Called at the end of the page generation
*
*/
function __destruct()
{
try {
Piwik::printSqlProfilingReportZend();
Piwik::printQueryCount();
Piwik::printTimer();
} catch(Exception $e) {}
}
示例4: increaseNotificationCount
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>";
}
}