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 TypeMethodDescriptionlong
Get the number of GC collections between the last start and stop state transitions.long
Get the number of milliseconds spent in GC between the last start and stop state transitions.double
Get the percentage of the ellapsed time spent in collections between the last start and stop state transitions.void
void
-
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.
-