MediaWiki  1.34.0
ProfilerOutput.php
Go to the documentation of this file.
1 <?php
27 abstract class ProfilerOutput {
29  protected $collector;
31  protected $params = [];
32 
37  public function __construct( Profiler $collector, array $params ) {
38  $this->collector = $collector;
39  $this->params = $params;
40  }
41 
46  public function canUse() {
47  return true;
48  }
49 
55  public function logsToOutput() {
56  return false;
57  }
58 
67  abstract public function log( array $stats );
68 }
ProfilerOutput\logsToOutput
logsToOutput()
May the log() try to write to standard output?
Definition: ProfilerOutput.php:55
ProfilerOutput\$collector
Profiler $collector
Definition: ProfilerOutput.php:29
ProfilerOutput\$params
array $params
Configuration of $wgProfiler.
Definition: ProfilerOutput.php:31
Profiler
Profiler base class that defines the interface and some trivial functionality.
Definition: Profiler.php:33
ProfilerOutput\__construct
__construct(Profiler $collector, array $params)
Definition: ProfilerOutput.php:37
ProfilerOutput\log
log(array $stats)
Log MediaWiki-style profiling data.
ProfilerOutput\canUse
canUse()
Can this output type be used?
Definition: ProfilerOutput.php:46
ProfilerOutput
Base class for profiling output.
Definition: ProfilerOutput.php:27