summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0bfa6b6)
Creates absurd dependency on the profiler from the parser. This profiling
is also not compatible with function-level profiling that we're trying to
aim for with xhprof.
Change-Id: I3c780fcb06e3470a0cbf50311ba916a0b67ea49e
*/
abstract public function isStub();
*/
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
*/
/**
* @param string $id
*/
* @ingroup Profiler
*/
class ProfilerSimpleDB extends ProfilerStandard {
* @ingroup Profiler
*/
class ProfilerSimpleDB extends ProfilerStandard {
- public function isPersistent() {
- return true;
- }
-
/**
* Log the whole profiling data into the database.
*/
/**
* Log the whole profiling data into the database.
*/
* @ingroup Profiler
*/
class ProfilerSimpleUDP extends ProfilerStandard {
* @ingroup Profiler
*/
class ProfilerSimpleUDP extends ProfilerStandard {
- public function isPersistent() {
- return true;
- }
-
public function logData() {
global $wgUDPProfilerHost, $wgUDPProfilerPort, $wgUDPProfilerFormatString;
public function logData() {
global $wgUDPProfilerHost, $wgUDPProfilerPort, $wgUDPProfilerFormatString;
- /**
- * Return whether this profiler stores data
- *
- * @see Profiler::logData()
- * @return bool
- */
- public function isPersistent() {
- return false;
- }
-
/**
* Add the inital item in the stack.
*/
/**
* Add the inital item in the stack.
*/
- public function isPersistent() {
- return false;
- }
-
public function profileIn( $fn ) {
}
public function profileIn( $fn ) {
}
- public function isPersistent() {
- // Disable per-title profiling sections
- return true;
- }
-
/**
* No-op for xhprof profiling.
*
/**
* No-op for xhprof profiling.
*