Skip to content

ph statistics

Philip Helger edited this page Apr 8, 2026 · 1 revision

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

Maven usage

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>

Clone this wiki locally