DeviceStorageAgeResourceMetricCollector
public
class
DeviceStorageAgeResourceMetricCollector
extends Object
implements
IResourceMetricCollector
java.lang.Object 中 | |
↳ | com.android.tradefed.monitoring.collector.DeviceStorageAgeResourceMetricCollector |
从 Logcat 解析存储存在时间。必须为此收集器启用 storaged。请检查 否则它将返回空资源。
摘要
字段 | |
---|---|
public
static
final
String |
AGE_TAG
|
public
static
final
String |
LIFE_A_TAG
|
public
static
final
String |
LIFE_B_TAG
|
public
static
final
String |
STORAGE_AGE_CMD_FORMAT
|
public
static
final
Pattern |
STORAGE_AGE_PATTERN
|
public
static
final
String |
STORAGE_AGE_RESOURCE_NAME
|
公共构造函数 | |
---|---|
DeviceStorageAgeResourceMetricCollector()
|
公共方法 | |
---|---|
|
getDeviceResourceMetrics(DeviceDescriptor descriptor, IDeviceManager deviceManager)
收集设备资源指标。 |
字段
AGE_TAG 岁
public static final String AGE_TAG
LIFE_A_TAG
public static final String LIFE_A_TAG
LIFE_B_TAG
public static final String LIFE_B_TAG
STORAGE_AGE_CMD_FORMAT
public static final String STORAGE_AGE_CMD_FORMAT
STORAGE_AGE_PATTERN 存储空间
public static final Pattern STORAGE_AGE_PATTERN
STORAGE_AGE_RESOURCE_NAME
public static final String STORAGE_AGE_RESOURCE_NAME
公共构造函数
DeviceStorageAgeResourceMetricCollector
public DeviceStorageAgeResourceMetricCollector ()
公共方法
getDeviceResourceMetrics
publicgetDeviceResourceMetrics (DeviceDescriptor descriptor, IDeviceManager deviceManager)
收集设备资源指标。该函数必须在 getDeviceMetricizeTimeoutMs()
毫秒后返回,否则结果将为
下降了 LabResourceDeviceMonitor
。此外,请检查
Thread.currentThread().isInterrupted() 进行开销大的操作,并立即返回。
参数 | |
---|---|
descriptor |
DeviceDescriptor :有关指标化设备的 DeviceDescriptor 。 |
deviceManager |
IDeviceManager :IDeviceManager 实例。 |
返回 | |
---|---|
|
设备 Resource 的 ERROR(/Collection) 。 |