* Added Profiler::isStub() to check if we are using a stub profiler, instead of check...
[lhc/web/wiklou.git] / includes / profiler / ProfilerSimple.php
index 975b0ed..8f1c621 100644 (file)
@@ -4,10 +4,6 @@
  * @ingroup Profiler
  */
 
-if ( !class_exists( 'Profiler' ) ) {
-       require_once( dirname( __FILE__ ) . '/Profiler.php' );
-}
-
 /**
  * Simple profiler base class.
  * @todo document methods (?)
@@ -15,7 +11,6 @@ if ( !class_exists( 'Profiler' ) ) {
  */
 class ProfilerSimple extends Profiler {
        var $mMinimumTime = 0;
-       var $mProfileID = false;
 
        function __construct() {
                global $wgRequestTime, $wgRUstart;
@@ -42,18 +37,6 @@ class ProfilerSimple extends Profiler {
                $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) {
@@ -103,8 +86,13 @@ class ProfilerSimple extends Profiler {
                }
        }
 
-       function getFunctionReport() {
+       public function getFunctionReport() {
                /* Implement in output subclasses */
+               return '';
+       }
+
+       public function logData() {
+               /* Implement in subclasses */
        }
 
        function getCpuTime($ru=null) {