本文整理匯總了PHP中XHProfRuns_Default::getRuns方法的典型用法代碼示例。如果您正苦於以下問題:PHP XHProfRuns_Default::getRuns方法的具體用法?PHP XHProfRuns_Default::getRuns怎麽用?PHP XHProfRuns_Default::getRuns使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類XHProfRuns_Default
的用法示例。
在下文中一共展示了XHProfRuns_Default::getRuns方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: unset
// ridiculously long.
if ($params[$k] == $v[1]) {
unset($params[$k]);
}
}
$vbar = ' class="vbar"';
$vwbar = ' class="vwbar"';
$vwlbar = ' class="vwlbar"';
$vbbar = ' class="vbbar"';
$vrbar = ' class="vrbar"';
$vgbar = ' class="vgbar"';
$xhprof_runs_impl = new XHProfRuns_Default();
if (isset($_GET['geturl'])) {
$rs = $xhprof_runs_impl->getUrlStats(array("url" => $_GET['geturl'], 'limit' => 100));
showChart($rs);
$rs = $xhprof_runs_impl->getRuns(array('url' => $_GET['geturl'], 'limit' => 100));
$url = htmlentities($_GET['geturl'], ENT_QUOTES);
displayRuns($rs, "Runs with URL: {$url}");
} elseif (isset($_GET['getcurl'])) {
$rs = $xhprof_runs_impl->getUrlStats(array("c_url" => $_GET['getcurl'], 'limit' => 100));
showChart($rs);
$url = htmlentities($_GET['getcurl'], ENT_QUOTES);
$rs = $xhprof_runs_impl->getRuns(array('c_url' => $_GET['getcurl'], 'limit' => 100));
displayRuns($rs, "Runs with Simplified URL: {$url}");
} elseif (isset($_GET['last'])) {
$last = (int) $_GET['last'];
$rs = $xhprof_runs_impl->getRuns(array("order by" => 'timestamp', 'limit' => $last));
displayRuns($rs, "Last {$last} Runs");
} elseif (isset($_GET['getruns'])) {
$days = (int) $_GET['days'];
switch ($_GET['getruns']) {