本文整理汇总了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>";
}
}