DeviceStorageAgeResourceMetricCollector

public class DeviceStorageAgeResourceMetricCollector
extends Object implements IResourceMetricCollector

java.lang.Object
   ↳ com.android.tradefed.monitoring.collector.DeviceStorageAgeResourceMetricCollector


แยกวิเคราะห์อายุของพื้นที่เก็บข้อมูลจาก Logcat ต้องเปิดใช้ที่เก็บข้อมูลสำหรับตัวรวบรวมนี้ โปรดตรวจสอบ ก่อนใช้ตัวรวบรวมนี้ มิฉะนั้นระบบจะแสดงทรัพยากรที่ว่างเปล่า

สรุป

ค่าคงที่

String AGE_TAG

String LIFE_A_TAG

String LIFE_B_TAG

String STORAGE_AGE_CMD_FORMAT

String STORAGE_AGE_RESOURCE_NAME

ช่อง

public static final Pattern STORAGE_AGE_PATTERN

เครื่องมือสร้างสาธารณะ

DeviceStorageAgeResourceMetricCollector()

เมธอดสาธารณะ

getDeviceResourceMetrics(DeviceDescriptor descriptor, IDeviceManager deviceManager)

รวบรวมเมตริกทรัพยากรของอุปกรณ์

ค่าคงที่

AGE_TAG

public static final String AGE_TAG

ค่าคงที่: "age"

LIFE_A_TAG

public static final String LIFE_A_TAG

ค่าคงที่ "lifeTimeA"

LIFE_B_TAG

public static final String LIFE_B_TAG

ค่าคงที่: "lifeTimeB"

STORAGE_AGE_CMD_FORMAT

public static final String STORAGE_AGE_CMD_FORMAT

ค่าคงที่: "logcat -b events -d -t "%d-%02d-%02d %02d:%02d:00.000" | grep storaged_emmc_info | tail -1"

STORAGE_AGE_RESOURCE_NAME

public static final String STORAGE_AGE_RESOURCE_NAME

ค่าคงที่: "storage_age"

ช่อง

STORAGE_AGE_PATTERN

public static final Pattern STORAGE_AGE_PATTERN

เครื่องมือสร้างสาธารณะ

DeviceStorageAgeResourceMetricCollector

public DeviceStorageAgeResourceMetricCollector ()

เมธอดสาธารณะ

getDeviceResourceMetrics

public  getDeviceResourceMetrics (DeviceDescriptor descriptor, 
                IDeviceManager deviceManager)

รวบรวมเมตริกทรัพยากรของอุปกรณ์ ฟังก์ชันต้องแสดงผลภายใน getDeviceMetricizeTimeoutMs() มิลลิวินาที ไม่เช่นนั้น LabResourceDeviceMonitor จะทิ้งผลลัพธ์ นอกจากนี้ โปรดตรวจสอบ Thread.currentThread().isInterrupted() ก่อนดำเนินการที่มีค่าใช้จ่ายสูงและกลับทันที

พารามิเตอร์
descriptor DeviceDescriptor: DeviceDescriptor เกี่ยวกับอุปกรณ์ที่ใช้ในการวัด

deviceManager IDeviceManager: อินสแตนซ์ IDeviceManager

คิกรีเทิร์น
ERROR(/Collection) ของอุปกรณ์ Resource