var $mStack = array (), $mWorkStack = array (), $mCollated = array ();
var $mCalls = array (), $mTotals = array ();
var $mTemplated = false;
+ protected $mProfileID = false;
private static $__instance = null;
function __construct() {
self::$__instance = $p;
}
+ public function setProfileID( $id ) {
+ $this->mProfileID = $id;
+ }
+
+ public function getProfileID() {
+ if ( $this->mProfileID === false ) {
+ return wfWikiID();
+ } else {
+ return $this->mProfileID;
+ }
+ }
+
/**
* Called by wfProfieIn()
*
*/
class ProfilerSimple extends Profiler {
var $mMinimumTime = 0;
- var $mProfileID = false;
function __construct() {
global $wgRequestTime, $wgRUstart;
$this->mMinimumTime = $min;
}
- function setProfileID( $id ) {
- $this->mProfileID = $id;
- }
-
- function getProfileID() {
- if ( $this->mProfileID === false ) {
- return wfWikiID();
- } else {
- return $this->mProfileID;
- }
- }
-
function profileIn($functionname) {
global $wgDebugFunctionEntry;
if ($wgDebugFunctionEntry) {