Don't profile setting up the temp directory
authorChad Horohoe <chadh@wikimedia.org>
Thu, 23 Apr 2015 17:30:23 +0000 (10:30 -0700)
committerChad Horohoe <chadh@wikimedia.org>
Thu, 23 Apr 2015 17:31:18 +0000 (10:31 -0700)
It's boring and profiling of wfTempDir() will already catch it

Change-Id: If4b489eb665af329fa9e3cb9b3e9913832b83862

includes/Setup.php

index 596e605..c5c16a0 100644 (file)
@@ -523,9 +523,7 @@ if ( $wgSecureLogin && substr( $wgServer, 0, 2 ) !== '//' ) {
 
 // Now that GlobalFunctions is loaded, set defaults that depend on it.
 if ( $wgTmpDirectory === false ) {
-       $ps_tmpdir = Profiler::instance()->scopedProfileIn( $fname . '-tempDir' );
        $wgTmpDirectory = wfTempDir();
-       Profiler::instance()->scopedProfileOut( $ps_tmpdir );
 }
 
 // We don't use counters anymore. Left here for extensions still