X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=profileinfo.php;h=4e3fb5ad28ca2f1640af72d44db90b6538424a09;hb=7719ea4b3ef97013121de14ce892bef5e9544ae2;hp=762af69ccb42bf171df2d69802017e296ca623cf;hpb=e173358375ba68a5bbbc1cbe97ad3f6ea25ca813;p=lhc%2Fweb%2Fwiklou.git diff --git a/profileinfo.php b/profileinfo.php index 762af69ccb..4e3fb5ad28 100644 --- a/profileinfo.php +++ b/profileinfo.php @@ -27,7 +27,7 @@ ini_set( 'zlib.output_compression', 'off' ); -$wgEnableProfileInfo = $wgProfileToDatabase = false; +$wgEnableProfileInfo = false; require __DIR__ . '/includes/WebStart.php'; header( 'Content-Type: text/html; charset=utf-8' ); @@ -149,8 +149,8 @@ $dbr = wfGetDB( DB_SLAVE ); if ( !$dbr->tableExists( 'profiling' ) ) { echo '

No profiling table exists, so we can\'t show you anything.

' - . '

If you want to log profiling data, enable $wgProfileToDatabase' - . ' in your LocalSettings.php and run maintenance/update.php to' + . '

If you want to log profiling data, enable $wgProfiler[\'output\'] = \'db\'' + . ' in your StartProfiler.php and run maintenance/update.php to' . ' create the profiling table.' . ''; exit( 1 ); @@ -384,7 +384,7 @@ if ( isset( $_REQUEST['filter'] ) ) { $last = false; foreach ( $res as $o ) { $next = new profile_point( $o->pf_name, $o->pf_count, $o->pf_time, $o->pf_memory ); - if ( $next->name() == '-total' ) { + if ( $next->name() == '-total' || $next->name() == 'main()' ) { profile_point::$totaltime = $next->time(); profile_point::$totalcount = $next->count(); profile_point::$totalmemory = $next->memory();