NativeAllocationInfo
public
class
NativeAllocationInfo
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.device.server.NativeAllocationInfo |
Stocke les informations d'allocation natives.
Contient le nombre d'allocations, leur taille et la trace de pile.
Remarque : ddmlib ne résout pas automatiquement la trace de pile. Bien que cette classe fournisse un espace de stockage pour la trace de pile résolue, il ne s'agit que d'une commodité.
Résumé
Constantes | |
|---|---|
String |
ALLOCATIONS_KW
|
String |
BEGIN_STACKTRACE_KW
|
String |
END_STACKTRACE_KW
|
String |
SIZE_KW
|
String |
TOTAL_SIZE_KW
|
Constructeurs publics | |
|---|---|
NativeAllocationInfo(int size, int allocations)
Construit un objet |
|
Méthodes publiques | |
|---|---|
void
|
addStackCallAddress(long address)
Ajoute une adresse d'appel de pile pour cette allocation. |
boolean
|
equals(Object obj)
Indique si un autre objet est "égal à" celui-ci. |
int
|
getAllocationCount()
Renvoie le nombre d'allocations. |
NativeStackCallInfo
|
getRelevantStackCallInfo()
Renvoie le premier |
|
getResolvedStackCall()
Renvoie l'appel de pile résolu. |
int
|
getSize()
Renvoie la taille de cette allocation. |
|
getStackCallAddresses()
Renvoie l'appel de pile de cette allocation sous forme d'adresses brutes. |
int
|
hashCode()
|
boolean
|
isStackCallResolved()
Indique si les adresses d'appel de pile ont été résolues en objets |
boolean
|
isZygoteChild()
Indique si l'allocation a eu lieu dans un enfant du processus zygote. |
void
|
setResolvedStackCall(
Définit la pile d'appels résolue pour cette allocation. |
boolean
|
stackEquals(NativeAllocationInfo mi)
|
String
|
toString()
Renvoie une représentation de l'objet sous forme de chaîne. |
Constantes
ALLOCATIONS_KW
public static final String ALLOCATIONS_KW
Valeur constante : "Allocations:"
BEGIN_STACKTRACE_KW
public static final String BEGIN_STACKTRACE_KW
Valeur constante : "BeginStacktrace:"
END_STACKTRACE_KW
public static final String END_STACKTRACE_KW
Valeur constante : "EndStacktrace"
SIZE_KW
public static final String SIZE_KW
Valeur constante : "Size:"
TOTAL_SIZE_KW
public static final String TOTAL_SIZE_KW
Valeur constante : "TotalSize:"
Constructeurs publics
NativeAllocationInfo
public NativeAllocationInfo (int size,
int allocations)Construit un objet NativeAllocationInfo.
| Paramètres | |
|---|---|
size |
int : taille des allocations. |
allocations |
int : nombre d'allocations |
Méthodes publiques
addStackCallAddress
public void addStackCallAddress (long address)
Ajoute une adresse d'appel de pile pour cette allocation.
| Paramètres | |
|---|---|
address |
long : adresse à ajouter. |
égal à
public boolean equals (Object obj)
Indique si un autre objet est "égal à" celui-ci.
| Paramètres | |
|---|---|
obj |
Object : objet de référence à comparer. |
| Renvoie | |
|---|---|
boolean |
true si cet objet est égal à l'argument obj ; false dans les autres cas. |
Voir aussi :
getAllocationCount
public int getAllocationCount ()
Renvoie le nombre d'allocations.
| Renvoie | |
|---|---|
int |
|
getRelevantStackCallInfo
public NativeStackCallInfo getRelevantStackCallInfo ()
Renvoie le premier NativeStackCallInfo pertinent.
Un NativeStackCallInfo pertinent est un appel de pile qui n'est pas profond dans le niveau inférieur de libc, mais la méthode réelle qui a effectué l'allocation.
| Renvoie | |
|---|---|
NativeStackCallInfo |
NativeStackCallInfo ou null si l'appel de pile n'a pas été traité à partir des adresses brutes. |
getResolvedStackCall
publicgetResolvedStackCall ()
Renvoie l'appel de pile résolu.
| Renvoie | |
|---|---|
|
Tableau de NativeStackCallInfo ou null si l'appel de pile n'a pas été résolu. |
getSize
public int getSize ()
Renvoie la taille de cette allocation.
| Renvoie | |
|---|---|
int |
|
getStackCallAddresses
publicgetStackCallAddresses ()
Renvoie l'appel de pile de cette allocation sous forme d'adresses brutes.
| Renvoie | |
|---|---|
|
la liste des adresses où l'attribution a eu lieu. |
hashCode
public int hashCode ()
| Renvoie | |
|---|---|
int |
|
isStackCallResolved
public boolean isStackCallResolved ()
Indique si les adresses d'appel de pile ont été résolues en objets NativeStackCallInfo.
| Renvoie | |
|---|---|
boolean |
|
isZygoteChild
public boolean isZygoteChild ()
Indique si l'allocation a eu lieu dans un enfant du processus zygote.
| Renvoie | |
|---|---|
boolean |
|
setResolvedStackCall
public void setResolvedStackCall (resolvedStackCall)
Définit la pile d'appels résolue pour cette allocation.
Si resolvedStackCall n'est pas null, isStackCallResolved() renverra true après cet appel.
| Paramètres | |
|---|---|
resolvedStackCall |
: liste des NativeStackCallInfo. |
stackEquals
public boolean stackEquals (NativeAllocationInfo mi)
| Paramètres | |
|---|---|
mi |
NativeAllocationInfo |
| Renvoie | |
|---|---|
boolean |
|
toString
public String toString ()
Renvoie une représentation de l'objet sous forme de chaîne.
| Renvoie | |
|---|---|
String |
|
Voir aussi :