当前位置: 首页>>代码示例>>PHP>>正文


PHP JProfiler::getbuffer方法代码示例

本文整理汇总了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;
    }
}
开发者ID:jakesyl,项目名称:flexicontent,代码行数:31,代码来源:mod_flexicontent.php

示例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/>&nbsp; &nbsp; &nbsp; - Default menu item for URLs : %.2f s ', $fc_run_times['getExistMenuItems'] / 1000000);
 }
 if (isset($fc_run_times['getItemsNoLang'])) {
     $msg .= sprintf('<br/>&nbsp; &nbsp; &nbsp; - Items language and translation associations: %.2f s ', $fc_run_times['getItemsNoLang'] / 1000000);
 }
 if (isset($fc_run_times['getItemsNoCat'])) {
开发者ID:nettdotkomm,项目名称:flexicontent-cck,代码行数:31,代码来源:admin.flexicontent.php


注:本文中的JProfiler::getbuffer方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。