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

CoverageOptions

public final class CoverageOptions
extends Object

java.lang.Object
   ↳ com.android.tradefed.testtype.coverage.CoverageOptions


Tradefed object to hold coverage options.

Summary

Nested classes

enum CoverageOptions.Toolchain

 

Public constructors

CoverageOptions()

Public methods

getCoverageProcesses()

Returns the name of processes to flush coverage from after the test has completed.

getCoverageToolchains()

Returns the coverage toolchains to collect coverage from.

File getLlvmProfdataPath()

Returns the directory containing the llvm-profdata tool.

boolean isCoverageEnabled()

Returns whether coverage measurements should be collected from this run.

boolean isCoverageFlushEnabled()

Returns whether coverage measurements should be flushed from running processes after the test has completed.

Public constructors

CoverageOptions

public CoverageOptions ()

Public methods

getCoverageProcesses

public  getCoverageProcesses ()

Returns the name of processes to flush coverage from after the test has completed.

Returns
a ERROR(/List) of process names to flush coverage from after the test

getCoverageToolchains

public  getCoverageToolchains ()

Returns the coverage toolchains to collect coverage from.

Returns
the toolchains to collect coverage from

getLlvmProfdataPath

public File getLlvmProfdataPath ()

Returns the directory containing the llvm-profdata tool.

Returns
File a ERROR(/File) containing the llvm-profdata tool and its dependencies

isCoverageEnabled

public boolean isCoverageEnabled ()

Returns whether coverage measurements should be collected from this run.

Returns
boolean whether to collect coverage measurements

isCoverageFlushEnabled

public boolean isCoverageFlushEnabled ()

Returns whether coverage measurements should be flushed from running processes after the test has completed.

Returns
boolean whether to flush processes for coverage measurements after the test