$fname = 'Setup.php';
wfProfileIn( $fname );
-wfProfileIn( $fname . '-defaults' );
+wfProfileIn( $fname . '-defaults' );
// Check to see if we are at the file scope
if ( !isset( $wgVersion ) ) {
);
}
-wfProfileOut( $fname . '-defaults' );
+wfProfileOut( $fname . '-defaults' );
// Disable MWDebug for command line mode, this prevents MWDebug from eating up
// all the memory from logging SQL queries on maintenance scripts
$wgDebugLogGroups['ratelimit'] = $wgRateLimitLog;
}
+if ( $wgProfileOnly ) {
+ $wgDebugLogGroups['profileoutput'] = $wgDebugLogFile;
+ $wgDebugLogFile = '';
+}
+
wfProfileOut( $fname . '-defaults2' );
wfProfileIn( $fname . '-misc1' );