PerfettoTraceRecorder
  public
  
  
  
  class
  PerfettoTraceRecorder
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.util.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,extraConfigs) 
Starts recording perfetto trace on device. Must call stopTrace(com.android.tradefed.device.ITestDevice) afterwards to stop the trace recording.
| Parameters | |
|---|---|
| device | ITestDevice: AITestDevicewhere trace will be recorded. | 
| extraConfigs | : A map of extra configs that needs to be added in the trace config file. | 
stopTrace
public File stopTrace (ITestDevice device)
Stops recording perfetto trace on the device.
Must have called ERROR(PerfettoTraceRecorder.startTrace(ITestDevice, Map)/com.android.tradefed.util.PerfettoTraceRecorder#startTrace(com.android.tradefed.device.ITestDevice,Map) PerfettoTraceRecorder.startTrace(ITestDevice, Map)) before.
| Parameters | |
|---|---|
| device | ITestDevice: device for which to stop the recording. @Return Returns the perfetto trace
     file. | 
| Returns | |
|---|---|
| File | |
