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 用户时间量。

适用于