TraceCmdCollector

public class TraceCmdCollector
extends AtraceCollector

java.lang.Object
   ↳ com.android.tradefed.device.metric.BaseDeviceMetricCollector
     ↳ com.android.tradefed.device.metric.AtraceCollector
       ↳ com.android.tradefed.device.metric.TraceCmdCollector


IMetricCollector thu thập dấu vết trong quá trình kiểm thử bằng trace-cmd và ghi lại các dấu vết đó vào lệnh gọi.

Bộ thu thập dấu vết này cho phép ngắt kết nối USB trong quá trình kiểm thử (như trong kiểm thử nguồn).

Công cụ mặc định của hệ thống, atrace, được sử dụng cùng với trình thu thập này để đặt các cờ sysfs dành riêng cho Android.

Bạn phải chỉ định tệp nhị phân trace-cmd (https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git) tương thích với Android.

Thao tác này sẽ tải định dạng trace.dat lên (xem man 5 trace-cmd.dat) do trace-cmd tạo.

Tóm tắt

Hàm khởi tạo công khai

TraceCmdCollector()

Phương thức được bảo vệ

LogDataType getLogType()
void startTracing(ITestDevice device)
void stopTracing(ITestDevice device)

Hàm khởi tạo công khai

TraceCmdCollector

public TraceCmdCollector ()

Phương thức được bảo vệ

getLogType

protected LogDataType getLogType ()

Giá trị trả về
LogDataType

startTracing

protected void startTracing (ITestDevice device)

Tham số
device ITestDevice

stopTracing

protected void stopTracing (ITestDevice device)

Tham số
device ITestDevice