*/ dbg_get_profiler_results(&$dbg_prof_results); echo '
' . "\n" . '' . "\n" . '' . "\n" . '' . "\n" . '' . "\n" . '' . "\n" . '' . "\n" . '' . "\n" . '' . "\n" . '' . "\n" . '' . "\n" . '' . "\n" . '' . "\n" . '' . "\n"; foreach($dbg_prof_results['line_no'] AS $idx => $line_no) { $mod_no = $dbg_prof_results['mod_no'][$idx]; dbg_get_module_name($mod_no, &$mod_name); //if (strpos("!".$mod_name, 'dbg.php') > 0) continue; $hit_cnt = $dbg_prof_results['hit_count'][$idx]; $time_sum = $dbg_prof_results['tm_sum'][$idx] * 1000; $time_avg_hit = $time_sum / $hit_cnt; $time_min = $dbg_prof_results['tm_min'][$idx] * 1000; $time_max = $dbg_prof_results['tm_max'][$idx] * 1000; $time_sum = sprintf('%.3f', $time_sum); $time_avg_hit = sprintf('%.3f', $time_avg_hit); $time_min = sprintf('%.3f', $time_min); $time_max = sprintf('%.3f', $time_max); dbg_get_source_context($mod_no, $line_no, &$ctx_id); //use a default context name if needed if (dbg_get_context_name($ctx_id, &$ctx_name) && strcmp($ctx_name,'') == 0) { $ctx_name = "::main"; } $bk = "#ffffff"; if (($idx & 1) == 0) $bk = "#e0e0e0"; if($time_avg_hit > $GLOBALS['cfg']['DBG']['profile']['threshold'] ) { echo '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . "\n"; } } echo "
' . $GLOBALS['strDBGModule'] . '' . $GLOBALS['strDBGLine'] . '' . $GLOBALS['strDBGHits'] . '' . $GLOBALS['strDBGTimePerHitMs'] . '' . $GLOBALS['strDBGTotalTimeMs'] . '' . $GLOBALS['strDBGMinTimeMs'] . '' . $GLOBALS['strDBGMaxTimeMs'] . '' . $GLOBALS['strDBGContextID'] . '' . $GLOBALS['strDBGContext'] . '
' . $mod_name . '' . $line_no . '' . $hit_cnt . '' . $time_avg_hit . '' . $time_sum . '' . $time_min . '' . $time_max . '' . $ctx_id . '' . $ctx_name . '
"; } } ?>