com.android.ddmlib
Class ClientData.HeapData

java.lang.Object
  extended by com.android.ddmlib.ClientData.HeapData
Enclosing class:
ClientData

public static class ClientData.HeapData
extends Object

Heap Information.

The heap is composed of several HeapSegment objects.

A call to isHeapDataComplete() will indicate if the segments (available through getHeapSegments()) represent the full heap.


Constructor Summary
ClientData.HeapData()
           
 
Method Summary
 void clearHeapData()
          Abandon the current list of heap segments.
 Collection<HeapSegment> getHeapSegments()
          Get the collected heap data, if sealed.
 byte[] getProcessedHeapData()
          Get the processed heap data, if present.
 Map<Integer,ArrayList<HeapSegment.HeapSegmentElement>> getProcessedHeapMap()
           
 boolean isHeapDataComplete()
          Returns whether the heap data has been sealed.
 void setProcessedHeapData(byte[] heapData)
          Sets the processed heap data.
 void setProcessedHeapMap(Map<Integer,ArrayList<HeapSegment.HeapSegmentElement>> heapMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientData.HeapData

public ClientData.HeapData()
Method Detail

clearHeapData

public void clearHeapData()
Abandon the current list of heap segments.


isHeapDataComplete

public boolean isHeapDataComplete()
Returns whether the heap data has been sealed.


getHeapSegments

public Collection<HeapSegment> getHeapSegments()
Get the collected heap data, if sealed.

Returns:
The list of heap segments if the heap data has been sealed, or null if it hasn't.

setProcessedHeapData

public void setProcessedHeapData(byte[] heapData)
Sets the processed heap data.

Parameters:
heapData - The new heap data (can be null)

getProcessedHeapData

public byte[] getProcessedHeapData()
Get the processed heap data, if present.

Returns:
the processed heap data, or null.

setProcessedHeapMap

public void setProcessedHeapMap(Map<Integer,ArrayList<HeapSegment.HeapSegmentElement>> heapMap)

getProcessedHeapMap

public Map<Integer,ArrayList<HeapSegment.HeapSegmentElement>> getProcessedHeapMap()


Copyright © 2008-2012. All Rights Reserved.