maxMetrics property

int maxMetrics
getter/setter pair

Maximum number of metrics retained; the oldest are dropped first.

Counters and timers keep recording while old measurements are discarded, so long sessions do not grow memory without bound. Values below 1 are treated as 1.

Implementation

static int maxMetrics = defaultMaxMetrics;