共用方式為


ProcessCpuUsageReport 類別

定義

提供進程 CPU 使用量的相關資料。

public ref class ProcessCpuUsageReport sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ProcessCpuUsageReport final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ProcessCpuUsageReport
Public NotInheritable Class ProcessCpuUsageReport
繼承
Object Platform::Object IInspectable ProcessCpuUsageReport
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

屬性

KernelTime

取得進程所耗用的 CPU 核心數量。

UserTime

取得進程所耗用的 CPU 使用者時間量。

適用於