*/
abstract public function isStub();
- /**
- * Return whether this profiler stores data
- *
- * Called by Parser::braceSubstitution. If true, the parser will not
- * generate per-title profiling sections, to avoid overloading the
- * profiling data collector.
- *
- * @see Profiler::logData()
- * @return bool
- */
- abstract public function isPersistent();
-
/**
* @param string $id
*/
* @ingroup Profiler
*/
class ProfilerSimpleDB extends ProfilerStandard {
- public function isPersistent() {
- return true;
- }
-
/**
* Log the whole profiling data into the database.
*/
* @ingroup Profiler
*/
class ProfilerSimpleUDP extends ProfilerStandard {
- public function isPersistent() {
- return true;
- }
-
public function logData() {
global $wgUDPProfilerHost, $wgUDPProfilerPort, $wgUDPProfilerFormatString;
return false;
}
- /**
- * Return whether this profiler stores data
- *
- * @see Profiler::logData()
- * @return bool
- */
- public function isPersistent() {
- return false;
- }
-
/**
* Add the inital item in the stack.
*/
return true;
}
- public function isPersistent() {
- return false;
- }
-
public function profileIn( $fn ) {
}
return false;
}
- public function isPersistent() {
- // Disable per-title profiling sections
- return true;
- }
-
/**
* No-op for xhprof profiling.
*