DeviceStorageAgeResourceMetricCollector
public
class
DeviceStorageAgeResourceMetricCollector
extends Object
implements
IResourceMetricCollector
| java.lang.Object | |
| ↳ | com.android.tradefed.monitoring.collector.DeviceStorageAgeResourceMetricCollector |
Depolama alanının yaşını logcat'ten ayrıştırın. Bu toplayıcı için depolama etkinleştirilmiş olmalıdır. Lütfen bu toplayıcıyı kullanmadan önce kontrol edin. Aksi takdirde boş kaynaklar döndürülür.
Özet
Sabitler | |
|---|---|
String |
AGE_TAG
|
String |
LIFE_A_TAG
|
String |
LIFE_B_TAG
|
String |
STORAGE_AGE_CMD_FORMAT
|
String |
STORAGE_AGE_RESOURCE_NAME
|
Alanlar | |
|---|---|
public
static
final
Pattern |
STORAGE_AGE_PATTERN
|
Herkese açık oluşturucular | |
|---|---|
DeviceStorageAgeResourceMetricCollector()
|
|
Herkese açık yöntemler | |
|---|---|
Collection<Resource>
|
getDeviceResourceMetrics(DeviceDescriptor descriptor, IDeviceManager deviceManager)
Cihaz kaynağı metriklerini toplar. |
Sabitler
AGE_TAG
public static final String AGE_TAG
Sabit Değer: "age"
LIFE_A_TAG
public static final String LIFE_A_TAG
Sabit Değer: "lifeTimeA"
LIFE_B_TAG
public static final String LIFE_B_TAG
Sabit Değer: "lifeTimeB"
STORAGE_AGE_CMD_FORMAT
public static final String STORAGE_AGE_CMD_FORMAT
Sabit Değer: "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
Sabit Değer: "storage_age"
Alanlar
STORAGE_AGE_PATTERN
public static final Pattern STORAGE_AGE_PATTERN
Herkese açık oluşturucular
DeviceStorageAgeResourceMetricCollector
public DeviceStorageAgeResourceMetricCollector ()
Herkese açık yöntemler
getDeviceResourceMetrics
public Collection<Resource> getDeviceResourceMetrics (DeviceDescriptor descriptor, IDeviceManager deviceManager)
Cihaz kaynağı metriklerini toplar. İşlev IResourceMetricCollector.getDeviceMetricizeTimeoutMs() ms içinde sonuç döndürmelidir. Aksi takdirde sonuç LabResourceDeviceMonitor tarafından bırakılır. Ayrıca, lütfen pahalı işlemden önce Thread.currentThread().isInterrupted() işlevini kontrol edin ve hemen geri dönün.
| Parametreler | |
|---|---|
descriptor |
DeviceDescriptor: Metrikleştirme cihazı hakkında DeviceDescriptor. |
deviceManager |
IDeviceManager: IDeviceManager örneği. |
| İadeler | |
|---|---|
Collection<Resource> |
Resource cihazının Collection. |