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. |
String
|
getProfrawFilter()
Returns the prefix of profdata filenames used for coverage measurements. |
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
publicgetCoverageProcesses ()
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
publicgetCoverageToolchains ()
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
|
getProfrawFilter
public String getProfrawFilter ()
Returns the prefix of profdata filenames used for coverage measurements.
Returns | |
---|---|
String |
a String containing the prefix of profdata filenames
|
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-08-03 UTC.