Udostępnij za pośrednictwem


HardwarePropertiesManager.GetCpuUsages Method

Definition

Return an array of CPU usage info for each core.

[Android.Runtime.Register("getCpuUsages", "()[Landroid/os/CpuUsageInfo;", "GetGetCpuUsagesHandler", ApiSince=24)]
public virtual Android.OS.CpuUsageInfo[] GetCpuUsages ();
[<Android.Runtime.Register("getCpuUsages", "()[Landroid/os/CpuUsageInfo;", "GetGetCpuUsagesHandler", ApiSince=24)>]
abstract member GetCpuUsages : unit -> Android.OS.CpuUsageInfo[]
override this.GetCpuUsages : unit -> Android.OS.CpuUsageInfo[]

Returns

an array of android.os.CpuUsageInfo for each core. Return null for each unplugged core. Empty if CPU usage is not supported on this system.

Attributes

Remarks

Return an array of CPU usage info for each core.

Java documentation for android.os.HardwarePropertiesManager.getCpuUsages().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to