X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fprofiler%2FProfilerSimple.php;h=8f1c6215197630f5849b0c7c52bbcff461822f96;hb=21e53d35908782d3f467658ce69abd20ae7c8237;hp=975b0ed8371d92254149d9b1ef559f0ed33bcaac;hpb=e376ee65f705f6c9ee93a3d7332fd2d1d9622651;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/profiler/ProfilerSimple.php b/includes/profiler/ProfilerSimple.php index 975b0ed837..8f1c621519 100644 --- a/includes/profiler/ProfilerSimple.php +++ b/includes/profiler/ProfilerSimple.php @@ -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) {