Package net.obvj.performetrics
Provides convenient classes for extracting performance metrics of Java code.
The top-level package contains the Counter and TimingSession classes, which are the base for computing the metrics of wall-clock time, CPU time, user time, and system time.
This package also contains the Stopwatch class that supports all of the abovementioned counters.
Global configuration parameters, such as default conversion mode, time unit, and precision, can be set up using the Performetrics facade.
-
Class Summary Class Description Counter An object that stores time units for a particular counter type (in nanoseconds) for elapsed time evaluation.Performetrics A Facade class meant to provide a simple interface for common parameters setup and other operations.Stopwatch A convenient timing object that supports multiple counter types and timing sessions.TimingSession A convenient timing object that supports multiple counter types.TimingSessionContainer An object that maintains multiple timing sessions for different counter types, and provides methods to retrieve elapsed times is different formats.UnmodifiableCounter A "wrapper" class that allows retrieving values from a pre-existingCounter
but prevents users from modifying it.UnmodifiableTimingSession A "wrapper" class that allows retrieving values from an existingTimingSession
but prevents users from modifying it. -
Enum Summary Enum Description ConversionMode Defines supported conversion modes.Counter.Type Enumerates all supported counter types, defining a particular time fetch strategy for each of them.