public class Tracer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Tracer.Mode
Enum that determines where the trace output goes.
|
Constructor and Description |
---|
Tracer() |
Modifier and Type | Method and Description |
---|---|
static Tracer |
getInstance()
Returns a reference to an instance of the tracer.
|
boolean |
isTracingEnabled()
Queries whether the tracing is enabled.
|
void |
setOutputFilename(String filename)
Sets the name of the log file where tracing output will be written if the
tracer is set to write to a file.
|
void |
setOutputMode(Tracer.Mode mode)
Sets where the trace output will go.
|
static void |
trace(Object... arguments)
Public methods in the UiAutomator should call this function to generate a
trace.
|
public static Tracer getInstance()
public void setOutputMode(Tracer.Mode mode)
mode
- public void setOutputFilename(String filename)
filename
- name of the log file.public boolean isTracingEnabled()
public static void trace(Object... arguments)
arguments
- arguments of the method being traced.