MediaWiki
REL1_24
|
Aggregator for wfIncrStats() that batches updates per request. More...
Public Member Functions | |
flush () | |
Flush all pending deltas to persistent storage. | |
incr ($key, $count=1) | |
Increment a key by delta $count. | |
Static Public Member Functions | |
static | singleton () |
Protected Member Functions | |
__construct (Config $config) | |
sendDeltasMemc (array $deltas) | |
sendDeltasUDP (array $deltas) | |
Protected Attributes | |
Config | $config |
* | |
array | $deltas = array() |
* |
Aggregator for wfIncrStats() that batches updates per request.
This avoids spamming the collector many times for the same key.
Definition at line 38 of file StatCounter.php.
StatCounter::__construct | ( | Config $ | config | ) | [protected] |
Definition at line 43 of file StatCounter.php.
References $config.
Flush all pending deltas to persistent storage.
Definition at line 80 of file StatCounter.php.
StatCounter::incr | ( | $ | key, |
$ | count = 1 |
||
) |
Increment a key by delta $count.
string | $key | |
int | $count |
Definition at line 67 of file StatCounter.php.
StatCounter::sendDeltasMemc | ( | array $ | deltas | ) | [protected] |
StatCounter::sendDeltasUDP | ( | array $ | deltas | ) | [protected] |
static StatCounter::singleton | ( | ) | [static] |
Definition at line 50 of file StatCounter.php.
Referenced by wfIncrStats(), and wfLogProfilingData().
Config StatCounter::$config [protected] |
*
Definition at line 39 of file StatCounter.php.