* group master queries with other queries in "SQL Queries" in profileinfo.php
* end 'main-misc-setup' section before executing ajax requests so that they don't get closed by the profiler for ajax requests.
unset( $wgTitle );
}
+wfProfileOut( 'main-misc-setup' );
+
#
# Send Ajax requests to the Ajax dispatcher.
#
exit;
}
-wfProfileOut( 'main-misc-setup' );
-
# Setting global variables in mediaWiki
$mediaWiki->setVal( 'action', $action );
$mediaWiki->setVal( 'CommandLineMode', $wgCommandLineMode );
}
}
$last = $next;
- if (preg_match("/^query: /", $next->name())) {
+ if (preg_match("/^query: /", $next->name()) || preg_match("/^query-m: /", $next->name())) {
$sqltotal += $next->time();
$queries[] = $next;
} else {