public final class MemUseTrackerImpl extends AccumulatedDebugValue implements DebugMemUseTracker
Modifier and Type | Class and Description |
---|---|
private static class |
MemUseTrackerImpl.MemUseCloseableCounterImpl |
Modifier and Type | Field and Description |
---|---|
private static ThreadLocal<CloseableCounterImpl> |
currentTracker
Records the most recent active tracker.
|
flat
Constructor and Description |
---|
MemUseTrackerImpl(String name,
boolean conditional) |
Modifier and Type | Method and Description |
---|---|
static long |
getCurrentThreadAllocatedBytes() |
DebugCloseable |
start()
Creates a point from which memory usage will be recorded if memory use tracking is
enabled.
|
String |
toString(long value) |
static String |
valueToString(long value) |
addToCurrentValue, compareTo, getCurrentValue, getIndex, getName, isConditional, setConditional, setCurrentValue, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCurrentValue
private static final ThreadLocal<CloseableCounterImpl> currentTracker
public MemUseTrackerImpl(String name, boolean conditional)
public static long getCurrentThreadAllocatedBytes()
public DebugCloseable start()
DebugMemUseTracker
start
in interface DebugMemUseTracker
public static String valueToString(long value)
public String toString(long value)
toString
in class DebugValue