|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.ddmlib.NativeAllocationInfo
public final class NativeAllocationInfo
Stores native allocation information.
Contains number of allocations, their size and the stack trace. Note: the ddmlib does not resolve the stack trace automatically. While this class provides storage for resolved stack trace, this is merely for convenience.
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
int |
getAllocationCount()
Returns the allocation count. |
NativeStackCallInfo |
getRelevantStackCallInfo()
Returns the first NativeStackCallInfo that is relevant. |
NativeStackCallInfo[] |
getResolvedStackCall()
Returns the resolved stack call. |
int |
getSize()
Returns the total size of this allocation. |
java.lang.Long[] |
getStackCallAddresses()
Returns the stack call of this allocation as raw addresses. |
boolean |
isStackCallResolved()
Returns whether the stack call addresses have been resolved into NativeStackCallInfo objects. |
boolean |
isZygoteChild()
Returns whether the allocation happened in a child of the zygote process. |
void |
setResolvedStackCall(java.util.List<NativeStackCallInfo> resolvedStackCall)
Sets the resolved stack call for this allocation. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public int getSize()
public boolean isZygoteChild()
public int getAllocationCount()
public boolean isStackCallResolved()
NativeStackCallInfo objects.
public java.lang.Long[] getStackCallAddresses()
public void setResolvedStackCall(java.util.List<NativeStackCallInfo> resolvedStackCall)
resolvedStackCall is non null then
isStackCallResolved() will return true after this call.
resolvedStackCall - The list of NativeStackCallInfo.public NativeStackCallInfo[] getResolvedStackCall()
NativeStackCallInfo or null if the stack call
was not resolved.#setResolvedStackCall(ArrayList),
isStackCallResolved()public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the reference object with which to compare.
true if this object is equal to the obj argument;
false otherwise.Object.equals(java.lang.Object)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public NativeStackCallInfo getRelevantStackCallInfo()
NativeStackCallInfo that is relevant.
A relevant NativeStackCallInfo is a stack call that is not deep in the
lower level of the libc, but the actual method that performed the allocation.
NativeStackCallInfo or null if the stack call has not
been processed from the raw addresses.#setResolvedStackCall(ArrayList),
isStackCallResolved()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||