public final class NoopMemoryMeterListener extends 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(Object obj,
String fieldName,
Object fieldValue)
Notification that the field from the specified object has been added.
|
void |
objectCounted(Object current)
Notification that the specified object been counted.
|
void |
objectMeasured(Object current,
long size)
Notification that the size of the specified object has been measured.
|
void |
started(Object obj)
Notification that
MemoryMeter as started analyzing the specified object. |
public static final MemoryMeterListener.Factory FACTORY
public void objectMeasured(Object current, long size)
current
- the object that has been measuredsize
- the object size in bytespublic void fieldAdded(Object obj, String fieldName, 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(Object obj)
MemoryMeter
as started analyzing the specified object.obj
- the object being analyzedpublic void objectCounted(Object current)
current
- the object that has been countedCopyright © 2018. All rights reserved.