Package io.deephaven.util
Class BenchmarkUtils.GcTimeStopWatch
java.lang.Object
io.deephaven.util.BenchmarkUtils.GcTimeStopWatch
- Enclosing class:
- BenchmarkUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGet the number of GC collections between the last start and stop state transitions.longGet the number of milliseconds spent in GC between the last start and stop state transitions.doubleGet the percentage of the ellapsed time spent in collections between the last start and stop state transitions.voidvoid
-
Constructor Details
-
GcTimeStopWatch
public GcTimeStopWatch()
-
-
Method Details
-
resetAndStart
public void resetAndStart() -
stopAndSample
public void stopAndSample() -
getCollectionCount
public long getCollectionCount()Get the number of GC collections between the last start and stop state transitions.- Returns:
- the number of GC collections between the last start and stop state transitions.
-
getCollectionTimeMs
public long getCollectionTimeMs()Get the number of milliseconds spent in GC between the last start and stop state transitions.- Returns:
- the number of milliseconds spent in GC between the last start and stop state transitions.
-
getCollectionTimePercentage
public double getCollectionTimePercentage()Get the percentage of the ellapsed time spent in collections between the last start and stop state transitions.- Returns:
- the percentage of the ellapsed time spent in collections between the last start and stop state transitions.
-