protected $mProfileID = false;
private static $__instance = null;
- function __construct( $params = null ) {
+ function __construct( $params ) {
// Push an entry for the pre-profile setup time onto the stack
global $wgRequestTime;
if ( !empty( $wgRequestTime ) ) {
} elseif( $wgProfiler instanceof Profiler ) {
self::$__instance = $wgProfiler; // back-compat
} else {
- self::$__instance = new ProfilerStub;
+ self::$__instance = new ProfilerStub( $wgProfiler );
}
}
return self::$__instance;
class ProfilerSimple extends Profiler {
var $mMinimumTime = 0;
- function __construct() {
+ function __construct( $params ) {
global $wgRequestTime, $wgRUstart;
+ parent::__construct( $params );
if (!empty($wgRequestTime) && !empty($wgRUstart)) {
$this->mWorkStack[] = array( '-total', 0, $wgRequestTime,$this->getCpuTime($wgRUstart));
if( isset( $profileConfig['visible'] ) && $profileConfig['visible'] ) {
$this->visible = true;
}
- parent::__construct();
+ parent::__construct( $profileConfig );
}
public function logData() {
var $trace = "";
var $memory = 0;
- function __construct() {
+ function __construct( $params ) {
global $wgRequestTime, $wgRUstart;
+ parent::__construct( $params );
if ( !empty( $wgRequestTime ) && !empty( $wgRUstart ) ) {
$this->mWorkStack[] = array( '-total', 0, $wgRequestTime, $this->getCpuTime( $wgRUstart ) );
}