public static class VirtualMachineMetrics.GarbageCollectorStats
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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.
|
public long getRuns()
public long getTime(java.util.concurrent.TimeUnit unit)
unit
- the time unit for the return value