PerfettoTraceRecorder
public
class
PerfettoTraceRecorder
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.device.metric.PerfettoTraceRecorder |
A utility class for recording perfetto trace on a ITestDevice.
Summary
Public constructors | |
|---|---|
PerfettoTraceRecorder()
|
|
Public methods | |
|---|---|
void
|
startTrace(ITestDevice device)
Starts recording perfetto trace on device. |
File
|
stopTrace(ITestDevice device)
Stops recording perfetto trace on the device. |
Public constructors
PerfettoTraceRecorder
public PerfettoTraceRecorder ()
Public methods
startTrace
public void startTrace (ITestDevice device)
Starts recording perfetto trace on device. Must call stopTrace(com.android.tradefed.device.ITestDevice) afterwards to stop the trace recording.
| Parameters | |
|---|---|
device |
ITestDevice: A ITestDevice where trace will be recorded.
|
stopTrace
public File stopTrace (ITestDevice device)
Stops recording perfetto trace on the device.
Must have called PerfettoTraceRecorder#startTrace(ITestDevice) before.
| Parameters | |
|---|---|
device |
ITestDevice: device for which to stop the recording. @Return Returns the perfetto trace
file.
|
| Returns | |
|---|---|
File |
|