Skip to content

Commit

Permalink
for diagnostic purposes, add peak memory use to the footer if timing …
Browse files Browse the repository at this point in the history
…displayed

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5069 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
thraxisp committed Mar 1, 2008
1 parent a49e703 commit a0a1341
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/html_api.php
Expand Up @@ -462,6 +462,7 @@ function html_footer( $p_file ) {
# print timings
if ( ON == config_get( 'show_timer' ) ) {
$g_timer->print_times();
echo ' ' . number_format( memory_get_peak_usage() / 1000 ) . 'k peak<br />';
}

# print db queries that were run
Expand Down

0 comments on commit a0a1341

Please sign in to comment.