ph statistics - phax/ph-commons GitHub Wiki
Thread-safe in-memory statistics collection, categorized into counters, sizes, timers and cache hit/miss ratios.
Highlights:
-
StatisticsManager- central registry for all statistics handlers -
IStatisticsHandlerCounter/IStatisticsHandlerSize/IStatisticsHandlerTimer/IStatisticsHandlerCache- typed statistics handlers - Keyed variants (
IStatisticsHandlerKeyedCounter, etc.) for per-key tracking -
StatisticsVisitor- visitor for iterating over collected statistics
Add the following to your pom.xml to use this artifact:
<dependency>
<groupId>com.helger.commons</groupId>
<artifactId>ph-statistics</artifactId>
<version>x.y.z</version>
</dependency>