com.espertech.esper.metrics.codahale_metrics.metrics.core
Class VirtualMachineMetrics.GarbageCollectorStats

java.lang.Object
  extended by com.espertech.esper.metrics.codahale_metrics.metrics.core.VirtualMachineMetrics.GarbageCollectorStats
Enclosing class:
VirtualMachineMetrics

public static class VirtualMachineMetrics.GarbageCollectorStats
extends java.lang.Object

Per-GC statistics.


Method Summary
 long getRuns()
          Returns the number of times the garbage collector has run.
 long getTime(java.util.concurrent.TimeUnit unit)
          Returns the amount of time in the given unit the garbage collector has taken in total.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRuns

public long getRuns()
Returns the number of times the garbage collector has run.

Returns:
the number of times the garbage collector has run

getTime

public long getTime(java.util.concurrent.TimeUnit unit)
Returns the amount of time in the given unit the garbage collector has taken in total.

Parameters:
unit - the time unit for the return value
Returns:
the amount of time in the given unit the garbage collector

© 2006-2014 EsperTech Inc.
All rights reserved.
Visit us at espertech.com