com.android.ddmlib
Class AllocationInfo

java.lang.Object
  extended by com.android.ddmlib.AllocationInfo
All Implemented Interfaces:
IStackTraceInfo

public class AllocationInfo
extends Object
implements IStackTraceInfo

Holds an Allocation information.


Nested Class Summary
static class AllocationInfo.AllocationSorter
           
static class AllocationInfo.SortMode
           
 
Method Summary
 int compareTo(AllocationInfo otherAlloc)
           
 boolean filter(String filter, boolean fullTrace)
           
 String getAllocatedClass()
          Returns the name of the allocated class.
 int getAllocNumber()
          Returns the allocation number.
 String getFirstTraceClassName()
           
 String getFirstTraceMethodName()
           
 int getSize()
          Returns the size of the allocation.
 StackTraceElement[] getStackTrace()
          Returns the stack trace.
 short getThreadId()
          Returns the id of the thread that performed the allocation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAllocNumber

public int getAllocNumber()
Returns the allocation number. Allocations are numbered as they happen with the most recent one having the highest number


getAllocatedClass

public String getAllocatedClass()
Returns the name of the allocated class.


getSize

public int getSize()
Returns the size of the allocation.


getThreadId

public short getThreadId()
Returns the id of the thread that performed the allocation.


getStackTrace

public StackTraceElement[] getStackTrace()
Description copied from interface: IStackTraceInfo
Returns the stack trace. This can be null.

Specified by:
getStackTrace in interface IStackTraceInfo

compareTo

public int compareTo(AllocationInfo otherAlloc)

getFirstTraceClassName

public String getFirstTraceClassName()

getFirstTraceMethodName

public String getFirstTraceMethodName()

filter

public boolean filter(String filter,
                      boolean fullTrace)


Copyright © 2008-2012. All Rights Reserved.