IResourceMetricCollector
public interface IResourceMetricCollector
com.android.tradefed.monitoring.collector.IResourceMetricCollector |
อินเทอร์เฟซสำหรับผู้ใช้เพื่อใช้ตัวรวบรวมทรัพยากรที่กำหนดเอง
สรุป
วิธีการสาธารณะ | |
---|---|
default long | getDeviceMetricizeTimeoutMs () รับค่าระยะหมดเวลาของอุปกรณ์ในหน่วยมิลลิวินาที |
default | getDeviceResourceMetrics (DeviceDescriptor descriptor, IDeviceManager deviceManager) รวบรวมเมตริกทรัพยากรอุปกรณ์ |
default long | getHostMetricizeTimeoutMs () รับค่าหมดเวลาของการวัดโฮสต์ในหน่วย ms |
default | getHostResourceMetrics () รวบรวมเมตริกทรัพยากรโฮสต์ |
วิธีการสาธารณะ
getDeviceMetricizeTimeoutMs
public long getDeviceMetricizeTimeoutMs ()
รับค่าระยะหมดเวลาของอุปกรณ์ในหน่วยมิลลิวินาที
คืนสินค้า | |
---|---|
long |
getDeviceResourceMetrics
publicgetDeviceResourceMetrics (DeviceDescriptor descriptor, IDeviceManager deviceManager)
รวบรวมเมตริกทรัพยากรอุปกรณ์ ฟังก์ชั่นจะต้องกลับมาใน getDeviceMetricizeTimeoutMs()
มิลลิวินาทีมิฉะนั้นผลที่ได้จะลดลงโดย LabResourceDeviceMonitor
นอกจากนี้ โปรดตรวจสอบ Thread.currentThread().isInterrupted() ก่อนการดำเนินการที่มีราคาแพง และส่งคืนทันที
พารามิเตอร์ | |
---|---|
descriptor | DeviceDescriptor ที่: DeviceDescriptor เกี่ยวกับอุปกรณ์ metricizing |
deviceManager | IDeviceManager ที่: IDeviceManager อินสแตนซ์ |
คืนสินค้า | |
---|---|
ERROR(/Collection) ของอุปกรณ์ Resource |
getHostMetricizeTimeoutMs
public long getHostMetricizeTimeoutMs ()
รับค่าหมดเวลาของการวัดโฮสต์ในหน่วย ms
คืนสินค้า | |
---|---|
long |
getHostResourceMetrics
publicgetHostResourceMetrics ()
รวบรวมเมตริกทรัพยากรโฮสต์ ฟังก์ชั่นจะต้องกลับมาใน getHostMetricizeTimeoutMs()
มิลลิวินาทีมิฉะนั้นผลที่ได้จะลดลงโดย LabResourceDeviceMonitor
นอกจากนี้ โปรดตรวจสอบ Thread.currentThread().isInterrupted() ก่อนการดำเนินการที่มีราคาแพง และส่งคืนทันที
คืนสินค้า | |
---|---|
ERROR(/Collection) ของโฮสต์ Resource |