Package io.deephaven.util
Class BenchmarkUtils.GcTimeStopWatch
java.lang.Object
io.deephaven.util.BenchmarkUtils.GcTimeStopWatch
- Enclosing class:
- BenchmarkUtils
public static class BenchmarkUtils.GcTimeStopWatch extends Object
-
Constructor Summary
Constructors Constructor Description GcTimeStopWatch() -
Method Summary
Modifier and Type Method Description longgetCollectionCount()Get the number of GC collections between the last start and stop state transitions.longgetCollectionTimeMs()Get the number of milliseconds spent in GC between the last start and stop state transitions.doublegetCollectionTimePercentage()Get the percentage of the ellapsed time spent in collections between the last start and stop state transitions.voidresetAndStart()voidstopAndSample()
-
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.
-