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 long
getCollectionCount()
Get the number of GC collections between the last start and stop state transitions.long
getCollectionTimeMs()
Get the number of milliseconds spent in GC between the last start and stop state transitions.double
getCollectionTimePercentage()
Get the percentage of the ellapsed time spent in collections between the last start and stop state transitions.void
resetAndStart()
void
stopAndSample()
-
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.
-