Google is committed to advancing racial equity for Black communities. See how.

TfObjectTracker

public class TfObjectTracker
extends Object

java.lang.Object
   ↳ com.android.tradefed.invoker.logger.TfObjectTracker


A utility to track the usage of the different Trade Fedederation objects.

Summary

Fields

public static final String TF_OBJECTS_TRACKING_KEY

Public methods

static void clearTracking()

Stop tracking the current invocation.

static void countWithParents(Class<?> object)

Count the occurrence of a give class and its super classes until the Tradefed interface.

static void directCount(String className, long occurrences)

Count explicitly one class and its occurrences

static getUsage()

Returns the usage of the tracked objects.

Fields

TF_OBJECTS_TRACKING_KEY

public static final String TF_OBJECTS_TRACKING_KEY

Public methods

clearTracking

public static void clearTracking ()

Stop tracking the current invocation. This is called automatically by the harness.

countWithParents

public static void countWithParents (Class<?> object)

Count the occurrence of a give class and its super classes until the Tradefed interface.

Parameters
object Class

directCount

public static void directCount (String className, 
                long occurrences)

Count explicitly one class and its occurrences

Parameters
className String: The object to track

occurrences long: current num of known occurrences

getUsage

public static  getUsage ()

Returns the usage of the tracked objects.

Returns