public final class GCUsageSampler extends Object
Modifier and Type | Method and Description |
---|---|
static long |
getGCTime() |
static long |
getGCTime(List<GarbageCollectorMXBean> gcBeans) |
static long |
getGCTimeDiff(List<GarbageCollectorMXBean> gcBeans,
gnu.trove.map.TObjectLongMap lastValues) |
static boolean |
isStarted() |
static void |
start(int sampleTime) |
static void |
stop() |
public static void start(int sampleTime)
public static void stop()
public static long getGCTimeDiff(List<GarbageCollectorMXBean> gcBeans, gnu.trove.map.TObjectLongMap lastValues)
public static long getGCTime(List<GarbageCollectorMXBean> gcBeans)
public static long getGCTime()
public static boolean isStarted()
Copyright © 2018 SPF4J. All rights reserved.