Class BenchmarkUtils.GcTimeStopWatch

java.lang.Object
io.deephaven.util.BenchmarkUtils.GcTimeStopWatch
Enclosing class:
BenchmarkUtils

public static class BenchmarkUtils.GcTimeStopWatch
extends Object
  • Constructor Details

  • 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.