AllocationInfopublic class AllocationInfo extends Object implements IStackTraceInfo, ComparableHolds 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 int | compareTo(com.android.ddmlib.AllocationInfo otherAlloc)
return otherAlloc.mAllocationSize - mAllocationSize;
| public java.lang.String | getAllocatedClass()Returns the name of the allocated class.
return mAllocatedClass;
| public int | getSize()Returns the size of the allocation.
return mAllocationSize;
| public java.lang.StackTraceElement[] | getStackTrace()
return mStackTrace;
| public short | getThreadId()Returns the id of the thread that performed the allocation.
return mThreadId;
|
|