// *************************************** $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); $filters_creation_total = 0; $filters_creation_times = FlexicontentFields::getFilterCreationTimes($filters_creation_total); $fc_jprof->mark('END: FLEXIcontent component: '.$_msg); $msg = '<span style="font-family:tahoma!important; font-size:11px!important;">'. implode('<br/>', $fc_jprof->getbuffer()) .'</span>'; $msg .= '<span 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['test_time'])) $msg .= sprintf('<br/>-- [Time of TEST part: %.2f s] ', $fc_run_times['test_time']/1000000); if (isset($fc_run_times['item_store_prepare'])) $msg .= sprintf('<br/>-- [Prepare item store: %.2f s] ', $fc_run_times['item_store_prepare']/1000000);