Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

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