public static class VirtualMachineMetrics.GarbageCollectorStats extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
public long getRuns()
public long getTime(TimeUnit unit)
unit
- the time unit for the return valueCopyright © 2014. All Rights Reserved.