public class InteractiveModeDataGatherer extends java.lang.Object implements DataGatherer, HeapAnalyzedListener, ExpandListener
| Constructor and Description |
|---|
InteractiveModeDataGatherer(UsageMode usageMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Activates the gathering of data.
|
void |
analyzedHeap(HeapContent heap,
VisualizationInput.AnalysisReason reason)
Notifies the listener that the heap was analyzed.
|
void |
deactivate()
Deactivates the gathering of data.
|
void |
expandValue(ObjectValue value,
ExpansionDepth depth)
Notify that the given value is expanded to the given depth.
|
java.util.List<Data> |
getGatheredData()
Gets the gathered data.
|
void |
removeExpansion(ObjectValue value)
Notify that expansion for the given value is removed.
|
public InteractiveModeDataGatherer(UsageMode usageMode)
public void activate()
DataGathereractivate in interface DataGathererpublic void deactivate()
DataGathererDataGatherer#getJsonData() method. However, no new data will be gathered.deactivate in interface DataGathererpublic java.util.List<Data> getGatheredData()
DataGatherergetGatheredData in interface DataGathererpublic void analyzedHeap(HeapContent heap, VisualizationInput.AnalysisReason reason)
HeapAnalyzedListeneranalyzedHeap in interface HeapAnalyzedListenerheap - The resulting heap content.reason - The reason behind analyzing the heap.public void removeExpansion(ObjectValue value)
ExpandListenerremoveExpansion in interface ExpandListenervalue - The value to remove expansion from.public void expandValue(ObjectValue value, ExpansionDepth depth)
ExpandListenerexpandValue in interface ExpandListenervalue - The value to expand.depth - The depth at which to expand the value.