Remove request_with_session/request_without_session
authortstarling <tstarling@wikimedia.org>
Tue, 10 Apr 2012 00:36:30 +0000 (10:36 +1000)
committertstarling <tstarling@wikimedia.org>
Tue, 10 Apr 2012 00:38:07 +0000 (10:38 +1000)
Remove wfIncrStats() calls for request_with_session and
request_without_session. These cause a high load on the profiler and are
not currently needed for performance analysis.

Change-Id: I0ed1e87574c7c9eeaee4e503db86b862ff0995bb

includes/Setup.php

index 32cd75c..68a715f 100644 (file)
@@ -468,11 +468,9 @@ if ( !wfIniGetBool( 'session.auto_start' ) ) {
 
 if ( !defined( 'MW_NO_SESSION' ) && !$wgCommandLineMode ) {
        if ( $wgRequest->checkSessionCookie() || isset( $_COOKIE[$wgCookiePrefix . 'Token'] ) ) {
-               wfIncrStats( 'request_with_session' );
                wfSetupSession();
                $wgSessionStarted = true;
        } else {
-               wfIncrStats( 'request_without_session' );
                $wgSessionStarted = false;
        }
 }