MediaWiki
REL1_22
|
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 () | |
sendDeltasMemc (array $deltas) | |
sendDeltasUDP (array $deltas) | |
Protected Attributes | |
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 | ( | ) | [protected] |
Definition at line 41 of file StatCounter.php.
Flush all pending deltas to persistent storage.
Definition at line 74 of file StatCounter.php.
StatCounter::incr | ( | $ | key, |
$ | count = 1 |
||
) |
Increment a key by delta $count.
string | $key | |
integer | $count |
Definition at line 61 of file StatCounter.php.
StatCounter::sendDeltasMemc | ( | array $ | deltas | ) | [protected] |
StatCounter::sendDeltasUDP | ( | array $ | deltas | ) | [protected] |
static StatCounter::singleton | ( | ) | [static] |
Definition at line 46 of file StatCounter.php.
Referenced by wfIncrStats(), and wfLogProfilingData().
Array StatCounter::$deltas = array() [protected] |
*
Definition at line 39 of file StatCounter.php.