DeviceStorageAgeResourceMetricCollector
public
class
DeviceStorageAgeResourceMetricCollector
extends Object
implements
IResourceMetricCollector
| java.lang.Object | |
| ↳ | com.android.tradefed.monitoring.collector.DeviceStorageAgeResourceMetricCollector |
แยกวิเคราะห์อายุการใช้งานของพื้นที่เก็บข้อมูลจาก Logcat ต้องเปิดใช้ Storaged สำหรับตัวรวบรวมนี้ โปรดตรวจสอบ ก่อนใช้ตัวรวบรวมนี้ ไม่เช่นนั้นระบบจะแสดงทรัพยากรที่ว่างเปล่า
สรุป
ค่าคงที่ | |
|---|---|
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()
|
|
เมธอดสาธารณะ | |
|---|---|
Collection<Resource>
|
getDeviceResourceMetrics(DeviceDescriptor descriptor, IDeviceManager deviceManager)
รวบรวมเมตริกทรัพยากรของอุปกรณ์ |
ค่าคงที่
AGE_TAG
public static final String AGE_TAG
Constant Value: "age"
LIFE_A_TAG
public static final String LIFE_A_TAG
Constant Value: "lifeTimeA"
LIFE_B_TAG
public static final String LIFE_B_TAG
Constant Value: "lifeTimeB"
STORAGE_AGE_CMD_FORMAT
public static final String STORAGE_AGE_CMD_FORMAT
Constant Value: "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
Constant Value: "storage_age"
ทุ่ง
STORAGE_AGE_PATTERN
public static final Pattern STORAGE_AGE_PATTERN
เครื่องมือสร้างสาธารณะ
DeviceStorageAgeResourceMetricCollector
public DeviceStorageAgeResourceMetricCollector ()
เมธอดสาธารณะ
getDeviceResourceMetrics
public Collection<Resource> getDeviceResourceMetrics (DeviceDescriptor descriptor, IDeviceManager deviceManager)
รวบรวมเมตริกทรัพยากรของอุปกรณ์ ฟังก์ชันต้องแสดงผลภายใน IResourceMetricCollector.getDeviceMetricizeTimeoutMs() มิลลิวินาที ไม่เช่นนั้นผลลัพธ์จะถูก
ทิ้งโดย LabResourceDeviceMonitor นอกจากนี้ โปรดตรวจสอบ
Thread.currentThread().isInterrupted() ก่อนดำเนินการที่ใช้เวลานานและแสดงผลทันที
| พารามิเตอร์ | |
|---|---|
descriptor |
DeviceDescriptor: DeviceDescriptor เกี่ยวกับอุปกรณ์ที่กำลังวัดเมตริก |
deviceManager |
IDeviceManager: อินสแตนซ์ IDeviceManager |
| การคืนสินค้า | |
|---|---|
Collection<Resource> |
Collection ของ Resource ของอุปกรณ์ |