/**
* @todo document
+ * @addtogroup Profiler
*/
class Profiler {
var $mStack = array (), $mWorkStack = array (), $mCollated = array ();
* @static
*/
function logToDB($name, $timeSum, $eventCount) {
+ # Do not log anything if database is readonly (bug 5375)
+ if( wfReadOnly() ) { return; }
+
# Warning: $wguname is a live patch, it should be moved to Setup.php
global $wguname, $wgProfilePerHost;
$name = substr($name, 0, 255);
$encname = $dbw->strencode($name);
-
+
if ($wgProfilePerHost) {
$pfhost = $wguname['nodename'];
} else {
$elt = end($this->mWorkStack);
return $elt[0];
}
-
+
static function getCaller( $level ) {
$backtrace = wfDebugBacktrace();
if ( isset( $backtrace[$level] ) ) {
}
}
-
-?>