public interface DebugMemUseTracker
ThreadMXBean. This facility should be employed
using the try-with-resources pattern:
try (DebugMemUseTracker.Closeable a = memUseTracker.start()) {
// the code to measure
}
| Modifier and Type | Method and Description |
|---|---|
long |
getCurrentValue()
Gets the current value of this tracker.
|
DebugCloseable |
start()
Creates a point from which memory usage will be recorded if memory use tracking is
enabled.
|
DebugCloseable start()
long getCurrentValue()