本文整理汇总了PHP中JProfiler::getbuffer方法的典型用法代码示例。如果您正苦于以下问题:PHP JProfiler::getbuffer方法的具体用法?PHP JProfiler::getbuffer怎么用?PHP JProfiler::getbuffer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JProfiler
的用法示例。
在下文中一共展示了JProfiler::getbuffer方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
>
<a class="readon" href="<?php
echo JRoute::_($more_link);
?>
" <?php
if ($params->get('more_blank') == 1) {
echo 'target="_blank"';
}
?>
><span><?php
echo JText::_($more_title);
?>
</span></a>
</span>
<?php
}
$mod_fc_run_times['rendering_template'] = $modfc_jprof->getmicrotime() - $mod_fc_run_times['rendering_template'];
$task_lbls = array('query_items' => 'Main DB Querying of Items (' . count($catdata_arr) . ' queries): %.2f secs', 'query_items_sec' => 'Sec SQL Querying of Items (' . count($catdata_arr) . ' queries): %.2f secs', 'empty_fields_filter' => 'Empty fields filter (skip items)): %.2f secs', 'item_list_creation' => 'Item list creation (with custom field rendering): %.2f secs', 'category_data_retrieval' => 'Category data retrieval: %.2f secs', 'rendering_template' => 'Adding css/js & Rendering Template with item/category/etc data: %.2f secs');
// append performance stats to global variable
$flexiparams = JComponentHelper::getParams('com_flexicontent');
if ($flexiparams->get('print_logging_info')) {
$modfc_jprof->mark('END: FLEXIcontent Module');
$msg = '<br/><br/>' . implode('<br/>', $modfc_jprof->getbuffer());
$msg .= sprintf('<code> <b><u>including</u></b>: <br/> -- Content Plugins: %.2f secs</code><br/>', $fc_content_plg_microtime / 1000000);
foreach ($mod_fc_run_times as $modtask => $modtime) {
$msg .= '<code>' . sprintf(' -- ' . $task_lbls[$modtask] . '<br/>', $modtime) . '</code>';
}
global $fc_performance_msg;
$fc_performance_msg .= $msg;
}
}
示例2: implode
// ***************************************
$app = JFactory::getApplication();
$_view = JRequest::getWord('view', 'flexicontent');
$_layout = JRequest::getWord('layout', '');
if ($task) {
$_msg = ' (TASK: ' . (!FLEXI_J16GE ? $ctrlname . '.' : '') . $task . ')';
} else {
$_msg = ' (VIEW: ' . $_view . ($_layout ? ' -- LAYOUT: ' . $_layout : '') . ')';
}
// **************************************
// Various Partial time performance stats
// **************************************
$fields_render_total = 0;
$fields_render_times = FlexicontentFields::getFieldRenderTimes($fields_render_total);
$fc_jprof->mark('END: FLEXIcontent component: ' . $_msg);
$msg = '<div style="font-family:tahoma!important; font-size:11px!important;">' . implode('<br/>', $fc_jprof->getbuffer()) . '</div>';
$msg .= '<div style="font-family:tahoma!important; font-size:11px!important;">';
if (isset($fc_run_times['initialize_component'])) {
$msg .= sprintf('<br/>-- [Initialize component: %.2f s] ', $fc_run_times['initialize_component'] / 1000000);
}
if (isset($fc_run_times['post_installation_tasks'])) {
$msg .= sprintf('<br/>-- [Post installation / DB intergrity TASKs: %.2f s] ', $fc_run_times['post_installation_tasks'] / 1000000);
}
$msg .= '<small>';
if (isset($fc_run_times['getExistMenuItems'])) {
$msg .= sprintf('<br/> - Default menu item for URLs : %.2f s ', $fc_run_times['getExistMenuItems'] / 1000000);
}
if (isset($fc_run_times['getItemsNoLang'])) {
$msg .= sprintf('<br/> - Items language and translation associations: %.2f s ', $fc_run_times['getItemsNoLang'] / 1000000);
}
if (isset($fc_run_times['getItemsNoCat'])) {