Stay organized with collections Save and categorize content based on your preferences.

GcovKernelCodeCoverageCollector

public final class GcovKernelCodeCoverageCollector
extends BaseDeviceMetricCollector implements IConfigurationReceiver

java.lang.Object
   ↳ com.android.tradefed.device.metric.BaseDeviceMetricCollector
     ↳ com.android.tradefed.device.metric.GcovKernelCodeCoverageCollector


A BaseDeviceMetricCollector that will pull gcov kernel coverage measurements out of debugfs and off of the device and then finally logs them as test artifacts.

Summary

Fields

public static final String CHECK_DEBUGFS_MNT_COMMAND

public static final String DEBUGFS_PATH

public static final String MAKE_TEMP_DIR_COMMAND

public static final String MOUNT_DEBUGFS_COMMAND

public static final String RESET_GCOV_COUNTS_COMMAND

public static final String UNMOUNT_DEBUGFS_COMMAND

Public constructors

GcovKernelCodeCoverageCollector()

Public methods

void onTestRunEnd(DeviceMetricData runData, currentRunMetrics)

Callback when a test run is ended.

void onTestRunStart(DeviceMetricData runData, int testCount)
void setConfiguration(IConfiguration config)

Injects the IConfiguration in use.

Fields

CHECK_DEBUGFS_MNT_COMMAND

public static final String CHECK_DEBUGFS_MNT_COMMAND

DEBUGFS_PATH

public static final String DEBUGFS_PATH

MAKE_TEMP_DIR_COMMAND

public static final String MAKE_TEMP_DIR_COMMAND

MOUNT_DEBUGFS_COMMAND

public static final String MOUNT_DEBUGFS_COMMAND

RESET_GCOV_COUNTS_COMMAND

public static final String RESET_GCOV_COUNTS_COMMAND

UNMOUNT_DEBUGFS_COMMAND

public static final String UNMOUNT_DEBUGFS_COMMAND

Public constructors

GcovKernelCodeCoverageCollector

public GcovKernelCodeCoverageCollector ()

Public methods

onTestRunEnd

public void onTestRunEnd (DeviceMetricData runData, 
                 currentRunMetrics)

Callback when a test run is ended. This should be the time for clean up.

Parameters
runData DeviceMetricData: the DeviceMetricData holding the data for the run. Will be the same object as during BaseDeviceMetricCollector.onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData).

currentRunMetrics : the current map of metrics passed to ERROR(/#testRunEnded(long,Map)).

Throws
DeviceNotAvailableException

onTestRunStart

public void onTestRunStart (DeviceMetricData runData, 
                int testCount)

Parameters
runData DeviceMetricData

testCount int

Throws
DeviceNotAvailableException

setConfiguration

public void setConfiguration (IConfiguration config)

Injects the IConfiguration in use.

Parameters
config IConfiguration