com.yammer.metrics.core
Class VirtualMachineMetrics.GarbageCollectorStats
java.lang.Object
com.yammer.metrics.core.VirtualMachineMetrics.GarbageCollectorStats
- Enclosing class:
- VirtualMachineMetrics
public static class VirtualMachineMetrics.GarbageCollectorStats
- extends Object
Per-GC statistics.
|
Field Summary |
private long |
runs
|
private long |
timeMS
|
|
Method Summary |
long |
getRuns()
Returns the number of times the garbage collector has run. |
long |
getTime(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 |
runs
private final long runs
timeMS
private final long timeMS
VirtualMachineMetrics.GarbageCollectorStats
private VirtualMachineMetrics.GarbageCollectorStats(long runs,
long timeMS)
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(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
Copyright © 2013 Immobilien Scout GmbH. All Rights Reserved.