* @ingroup Profiler
*/
-if ( !class_exists( 'Profiler' ) ) {
- require_once( dirname( __FILE__ ) . '/Profiler.php' );
-}
-
/**
* Simple profiler base class.
* @todo document methods (?)
*/
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) {
}
}
- function getFunctionReport() {
+ public function getFunctionReport() {
/* Implement in output subclasses */
+ return '';
+ }
+
+ public function logData() {
+ /* Implement in subclasses */
}
function getCpuTime($ru=null) {