// *************************************** // Total performance stats of current view // *************************************** $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);