Methods |
public
static
|
add(int $value, string $counter, string $group = "'general'"): int
Add a value to a counter and return its value
Add a value to a counter and return its value
|
#
|
public
static
|
count(string $counter, string $group = "'general'"): int
Increment a counter and return its value
Increment a counter and return its value
|
#
|
public
static
|
getCounter(string $counter, string $group = "'general'"): int
Get the value of a counter
Get the value of a counter
|
#
|
public
static
|
getCounters(string[]|string|null $groups = null): array<string, array<string, int>>|array<string, int>
Get counter values (see {@see MetricCollector::getCounters()})
Get counter values (see {@see MetricCollector::getCounters()})
|
#
|
public
static
|
getTimer(string $timer, string $group = "'general'", bool $includeRunning = true): array{float, int}
Get the start count and elapsed milliseconds of a timer
Get the start count and elapsed milliseconds of a timer
|
#
|
public
static
|
getTimers(
bool $includeRunning = true,
string[]|string|null $groups = null,
): array<string, array<string, array{float, int}>>|array<string, array{float, int}>
Get timer start counts and elapsed milliseconds (see {@see MetricCollector::getTimers()})
Get timer start counts and elapsed milliseconds (see {@see MetricCollector::getTimers()})
|
#
|
public
static
|
pop(): void
Pop metrics off the stack
Pop metrics off the stack
|
#
|
public
static
|
push(): void
Push the current state of all metrics onto the stack
Push the current state of all metrics onto the stack
|
#
|
public
static
|
startTimer(string $timer, string $group = "'general'"): void
Start a timer based on the system's high-resolution time
Start a timer based on the system's high-resolution time
|
#
|
public
static
|
stopTimer(string $timer, string $group = "'general'"): float
Stop a timer and return the elapsed milliseconds
Stop a timer and return the elapsed milliseconds
|
#
|