AllocationInfo

public class AllocationInfo
extends Object implements IStackTraceInfo

java.lang.Object
   ↳ com.android.tradefed.device.server.AllocationInfo


Contient des informations sur l'allocation.

Résumé

Classes imbriquées

class AllocationInfo.AllocationSorter

 

Méthodes publiques

boolean allocatedClassMatches(String pattern, Locale locale)
int compareTo(AllocationInfo otherAlloc)
boolean filter(String filter, boolean fullTrace, Locale locale)

Renvoie "true" si le filtre donné correspond à ces informations d'allocation, sans tenir compte de la casse (selon les paramètres régionaux indiqués).

int getAllocNumber()

Renvoie le numéro d'allocation.

String getAllocatedClass()

Renvoie le nom de la classe attribuée.

String getAllocationSite()
String getFirstTraceClassName()
String getFirstTraceMethodName()
getMatchingStackFrames(String filter, boolean fullTrace, Locale locale)
int getSize()

Renvoie la taille de l'allocation.

StackTraceElement[] getStackTrace()

Renvoie la trace de la pile.

short getThreadId()

Renvoie l'ID du thread qui a effectué l'allocation.

Méthodes publiques

allocatedClassMatches

public boolean allocatedClassMatches (String pattern, 
                Locale locale)

Paramètres
pattern String

locale Locale

Renvoie
boolean

compareTo

public int compareTo (AllocationInfo otherAlloc)

Paramètres
otherAlloc AllocationInfo

Renvoie
int

filtre

public boolean filter (String filter, 
                boolean fullTrace, 
                Locale locale)

Renvoie "true" si le filtre donné correspond à ces informations d'allocation, sans tenir compte de la casse (selon les paramètres régionaux indiqués).

Paramètres
filter String

fullTrace boolean

locale Locale

Renvoie
boolean

getAllocNumber

public int getAllocNumber ()

Renvoie le numéro d'allocation. Les allocations sont numérotées dans l'ordre chronologique, la plus récente portant le numéro le plus élevé.

Renvoie
int

getAllocatedClass

public String getAllocatedClass ()

Renvoie le nom de la classe attribuée.

Renvoie
String

getAllocationSite

public String getAllocationSite ()

Renvoie
String

getFirstTraceClassName

public String getFirstTraceClassName ()

Renvoie
String

getFirstTraceMethodName

public String getFirstTraceMethodName ()

Renvoie
String

getMatchingStackFrames

public  getMatchingStackFrames (String filter, 
                boolean fullTrace, 
                Locale locale)

Paramètres
filter String

fullTrace boolean

locale Locale

Renvoie

getSize

public int getSize ()

Renvoie la taille de l'allocation.

Renvoie
int

getStackTrace

public StackTraceElement[] getStackTrace ()

Renvoie la trace de la pile. Peut être défini sur null.

Renvoie
StackTraceElement[]

getThreadId

public short getThreadId ()

Renvoie l'ID du thread qui a effectué l'allocation.

Renvoie
short