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()
DataGatherer
activate
in interface DataGatherer
public void deactivate()
DataGatherer
DataGatherer#getJsonData()
method. However, no new data will be gathered.deactivate
in interface DataGatherer
public java.util.List<Data> getGatheredData()
DataGatherer
getGatheredData
in interface DataGatherer
public void analyzedHeap(HeapContent heap, VisualizationInput.AnalysisReason reason)
HeapAnalyzedListener
analyzedHeap
in interface HeapAnalyzedListener
heap
- The resulting heap content.reason
- The reason behind analyzing the heap.public void removeExpansion(ObjectValue value)
ExpandListener
removeExpansion
in interface ExpandListener
value
- The value to remove expansion from.public void expandValue(ObjectValue value, ExpansionDepth depth)
ExpandListener
expandValue
in interface ExpandListener
value
- The value to expand.depth
- The depth at which to expand the value.