public interface HasSupportedPerformanceDataType extends ExecutesMethod, CanRememberExtensionPresence
Modifier and Type | Method and Description |
---|---|
default java.util.List<java.util.List<java.lang.Object>> |
getPerformanceData(java.lang.String packageName,
java.lang.String dataType,
int dataReadTimeout)
returns the resource usage information of the application.
|
default java.util.List<java.lang.String> |
getSupportedPerformanceDataTypes()
returns the information type of the system state which is supported to read
as like cpu, memory, network traffic, and battery.
|
execute, execute
assertExtensionExists, markExtensionAbsence
default java.util.List<java.lang.String> getSupportedPerformanceDataTypes()
default java.util.List<java.util.List<java.lang.Object>> getPerformanceData(java.lang.String packageName, java.lang.String dataType, int dataReadTimeout)
packageName
- the package name of the applicationdataType
- the type of system state which wants to read.
It should be one of the supported performance data types,
the return value of the function "getSupportedPerformanceDataTypes"dataReadTimeout
- the number of attempts to read