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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCurrentValueprivate static final ThreadLocal<CloseableCounterImpl> currentTracker
public MemUseTrackerImpl(String name, boolean conditional)
public static long getCurrentThreadAllocatedBytes()
public DebugCloseable start()
DebugMemUseTrackerstart in interface DebugMemUseTrackerpublic static String valueToString(long value)
public String toString(long value)
toString in class DebugValue