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

Constant Value: "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