diff --git a/ChangeLog b/ChangeLog index 905147d4d..a75fc4fcf 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,11 @@ phpMyAdmin - ChangeLog $Id$ $Source$ +2006-09-19 Marc Delisle + * Documentation.html, libraries/footer.inc.php, + libraries/dbg/profiling.php: remove profiling feature + due to licensing issues (non GPL code) + 2006-09-15 Marc Delisle * lang/finnish: Update, thanks to Yoneh - yoneh. * lang/bulgarian: Update, thanks to Stanislav Yordanov - stanprog. diff --git a/Documentation.html b/Documentation.html index 1ee62cfd0..77ea0514b 100755 --- a/Documentation.html +++ b/Documentation.html @@ -1862,7 +1862,8 @@ ALTER TABLE `pma_column_comments` to the end of every page displayed in the main window with profiling statistics for that page.
You may need to increase the maximum execution time for this to - complete successfully. + complete successfully. Profiling was removed from the code + for version 2.9.0 due to licensing issues.
$cfg['DBG']['profile']['threshold'] float (units in milliseconds)
DEVELOPERS ONLY!
diff --git a/libraries/dbg/profiling.php b/libraries/dbg/profiling.php deleted file mode 100644 index 77d8b8139..000000000 --- a/libraries/dbg/profiling.php +++ /dev/null @@ -1,105 +0,0 @@ - - */ - dbg_get_profiler_results( $dbg_prof_results = '' ); - $cwdlen = strlen(getcwd()); // gma added var, $cwdlen = strlen(getcwd()); - echo '
' . "\n" . - '' . "\n"; - // gma added "$tr =" - $tr = '' . "\n" . - '' . "\n" . - '' . "\n" . - '' . "\n" . - '' . "\n" . - '' . "\n" . - '' . "\n" . - '' . "\n" . - '' . "\n" . - '' . "\n" . - '' . "\n"; // gma change "." to ";" - echo $tr.'' . "\n"; - $lines = 0; // gma added "echo $tr." and "$lines = 0;" - $ctx_name = ''; - $mod_name = ''; - $ctx_id = ''; - $odd_row = true; - foreach ( $dbg_prof_results['line_no'] as $idx => $line_no ) { - dbg_get_module_name( $dbg_prof_results['mod_no'][$idx], $mod_name ); - - //if (strpos("!".$mod_name, 'dbg.php') > 0) continue; - - $time_sum = $dbg_prof_results['tm_sum'][$idx] * 1000; - $time_avg_hit = $time_sum / $dbg_prof_results['hit_count'][$idx]; - - $time_sum = sprintf( '%.3f', $time_sum ); - $time_avg_hit = sprintf('%.3f', $time_avg_hit); - $time_min = sprintf( '%.3f', $dbg_prof_results['tm_min'][$idx] * 1000 ); - $time_max = sprintf( '%.3f', $dbg_prof_results['tm_max'][$idx] * 1000 ); - dbg_get_source_context( $dbg_prof_results['mod_no'][$idx], - $line_no, $ctx_id ); - - // use a default context name if needed - if ( dbg_get_context_name( $ctx_id, $ctx_name ) - && strlen($ctx_name) == 0 ) { - $ctx_name = "::main"; - } - - if ( $time_avg_hit > $GLOBALS['cfg']['DBG']['profile']['threshold'] ) { - echo '' . - // gma changed "$mod_name" to "substr($mod_name, $cwdlen+1)" - '' . - '' . - '' . - '' . - '' . - '' . - '' . - '' . - '' . - '' . "\n"; - - // gma added line. Repeats the header every x lines. - if ( $lines === 19 ) { - $odd_row = true; - $lines = 0; - echo $tr; - } else { - $odd_row = ! $odd_row; - $lines++; - } - } - } - echo '
' . $GLOBALS['strDBGModule'] . '' . $GLOBALS['strDBGLine'] . '' . $GLOBALS['strDBGHits'] . '' . $GLOBALS['strDBGTimePerHitMs'] . '' . $GLOBALS['strDBGTotalTimeMs'] . '' . $GLOBALS['strDBGMinTimeMs'] . '' . $GLOBALS['strDBGMaxTimeMs'] . '' . $GLOBALS['strDBGContextID'] . '' . $GLOBALS['strDBGContext'] . '
' . substr($mod_name, $cwdlen+1) . '' . $line_no . '' . $dbg_prof_results['hit_count'][$idx] . '' . $time_avg_hit . '' . $time_sum . '' . $time_min . '' . $time_max . '' . $ctx_id . '' . $ctx_name . '
'; - } -} -/* gma ... Developer Notes -These two scriptlets can be used as On/Off buttons in your browsers, add to links. -ON: -javascript: document.cookie = 'DBGSESSID=' + escape('1;d=1,p=1') + '; path=/'; document.execCommand('refresh'); -or ... -javascript: document.cookie = 'DBGSESSID=' + escape('1;d=0,p=1') + '; path=/'; document.execCommand('refresh'); -OFF: -javascript: document.cookie = 'DBGSESSID=' + escape('1;d=0,p=0') + '; path=/'; document.execCommand('refresh'); -*/ -?> diff --git a/libraries/footer.inc.php b/libraries/footer.inc.php index 285da4c56..44bff3692 100644 --- a/libraries/footer.inc.php +++ b/libraries/footer.inc.php @@ -136,17 +136,20 @@ if (file_exists('./config.footer.inc.php')) { /** * Generates profiling data if requested */ + +// profiling deactivated due to licensing issues if (! empty($GLOBALS['cfg']['DBG']['enable']) && ! empty($GLOBALS['cfg']['DBG']['profile']['enable'])) { //run the basic setup code first require_once './libraries/dbg/setup.php'; //if the setup ran fine, then do the profiling + /* if (! empty($GLOBALS['DBG'])) { require_once './libraries/dbg/profiling.php'; dbg_dump_profiling_results(); } + */ } - ?>