语言

ResourceUtilization 结构

定义

注意

This API is obsolete and will be removed in a future version. Consider using Resource Monitoring observable instruments.

捕获给定时间点的资源使用情况。

public value class ResourceUtilization
[System.Obsolete("This API is obsolete and will be removed in a future version. Consider using Resource Monitoring observable instruments.", DiagnosticId="EXTOBS0001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public readonly struct ResourceUtilization
public readonly struct ResourceUtilization
[<System.Obsolete("This API is obsolete and will be removed in a future version. Consider using Resource Monitoring observable instruments.", DiagnosticId="EXTOBS0001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type ResourceUtilization = struct
type ResourceUtilization = struct
Public Structure ResourceUtilization
继承
ResourceUtilization
特性

构造函数

名称 说明
ResourceUtilization(Double, UInt64, SystemResources)
已过时.

初始化 结构的新实例 ResourceUtilization 。

属性

名称 说明
CpuUsedPercentage
已过时.

获取 CPU 使用率百分比。

MemoryUsedInBytes
已过时.

获取使用的内存总量。

MemoryUsedPercentage
已过时.

获取内存利用率百分比。

Snapshot
已过时.

获取系统资源利用率的最新快照。

SystemResources
已过时.

获取基础系统定义的 CPU 和内存限制。

适用于