MediaWiki REL1_33
ProfilerOutput.php
Go to the documentation of this file.
1<?php
27abstract class ProfilerOutput {
29 protected $collector;
31 protected $params = [];
32
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
64 abstract public function log( array $stats );
65}
Base class for profiling output.
canUse()
Can this output type be used?
array $params
Configuration of $wgProfiler.
log(array $stats)
Log MediaWiki-style profiling data.
logsToOutput()
Does log() just send the data to the request/script output?
__construct(Profiler $collector, array $params)
Profiler base class that defines the interface and some trivial functionality.
Definition Profiler.php:33
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))