FileDocCategorySizeDatePackage
AllocationInfo.javaAPI DocAndroid 1.5 API1967Wed May 06 22:41:08 BST 2009com.android.ddmlib

AllocationInfo

public class AllocationInfo extends Object implements IStackTraceInfo, Comparable
Holds an Allocation information.

Fields Summary
private String
mAllocatedClass
private int
mAllocationSize
private short
mThreadId
private StackTraceElement[]
mStackTrace
Constructors Summary
AllocationInfo(String allocatedClass, int allocationSize, short threadId, StackTraceElement[] stackTrace)

        mAllocatedClass = allocatedClass;
        mAllocationSize = allocationSize;
        mThreadId = threadId;
        mStackTrace = stackTrace;
    
Methods Summary
public intcompareTo(com.android.ddmlib.AllocationInfo otherAlloc)

        return otherAlloc.mAllocationSize - mAllocationSize;
    
public java.lang.StringgetAllocatedClass()
Returns the name of the allocated class.

        return mAllocatedClass;
    
public intgetSize()
Returns the size of the allocation.

        return mAllocationSize;
    
public java.lang.StackTraceElement[]getStackTrace()

        return mStackTrace;
    
public shortgetThreadId()
Returns the id of the thread that performed the allocation.

        return mThreadId;