public final class NoopMemoryMeterListener
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
MemoryMeterListener.Factory
A factory for
MemoryMeterListener. |
| Modifier and Type | Field and Description |
|---|---|
static MemoryMeterListener.Factory |
FACTORY |
| Modifier and Type | Method and Description |
|---|---|
void |
done(long size)
Notification that the entire graphs has been measured.
|
void |
fieldAdded(java.lang.Object obj,
java.lang.String fieldName,
java.lang.Object fieldValue)
Notification that the field from the specified object has been added.
|
void |
objectCounted(java.lang.Object current)
Notification that the specified object been counted.
|
void |
objectMeasured(java.lang.Object current,
long size)
Notification that the size of the specified object has been measured.
|
void |
started(java.lang.Object obj)
Notification that
MemoryMeter as started analyzing the specified object. |
public static final MemoryMeterListener.Factory FACTORY
public void objectMeasured(java.lang.Object current,
long size)
current - the object that has been measuredsize - the object size in bytespublic void fieldAdded(java.lang.Object obj,
java.lang.String fieldName,
java.lang.Object fieldValue)
obj - the object for which a field has been addedfieldName - the field namefieldValue - the field valuepublic void done(long size)
size - the size of the entire graph.public void started(java.lang.Object obj)
MemoryMeter as started analyzing the specified object.obj - the object being analyzedpublic void objectCounted(java.lang.Object current)
current - the object that has been counted