public final class NoopMemoryMeterListener
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
MemoryMeterListener.Factory
A factory for
MemoryMeterListener . |
限定符和类型 | 字段和说明 |
---|---|
static MemoryMeterListener.Factory |
FACTORY |
限定符和类型 | 方法和说明 |
---|---|
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