DeviceStorageAgeResourceMetricCollector
public
class
DeviceStorageAgeResourceMetricCollector
extends Object
implements
IResourceMetricCollector
java.lang.Object | |
↳ | com.android.tradefed.monitoring.collector.DeviceStorageAgeResourceMetricCollector |
Parse storage age from logcat. The storaged must been enabled for this collector. Please check before you use this collector, otherwise it will return empty resources.
Summary
Fields | |
---|---|
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
|
Public constructors | |
---|---|
DeviceStorageAgeResourceMetricCollector()
|
Public methods | |
---|---|
|
getDeviceResourceMetrics(DeviceDescriptor descriptor, IDeviceManager deviceManager)
Collects device resource metrics. |
Fields
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
Public constructors
DeviceStorageAgeResourceMetricCollector
public DeviceStorageAgeResourceMetricCollector ()
Public methods
getDeviceResourceMetrics
publicgetDeviceResourceMetrics (DeviceDescriptor descriptor, IDeviceManager deviceManager)
Collects device resource metrics. The function must return in getDeviceMetricizeTimeoutMs()
ms, otherwise the result will be
dropped by the LabResourceDeviceMonitor
. Also, please check
Thread.currentThread().isInterrupted() before expensive operation and return immediately.
Parameters | |
---|---|
descriptor |
DeviceDescriptor : the DeviceDescriptor about the metricizing device. |
deviceManager |
IDeviceManager : the IDeviceManager instance. |
Returns | |
---|---|
|
a ERROR(/Collection) of device Resource .
|