英語で読む

次の方法で共有


ResourceUtilization Struct

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Caution

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

Captures resource usage at a given point in time.

C#
[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
C#
public readonly struct ResourceUtilization
Inheritance
ResourceUtilization
Attributes

Constructors

Properties

CpuUsedPercentage

Gets the CPU utilization percentage.

MemoryUsedInBytes

Gets the total memory used.

MemoryUsedPercentage

Gets the memory utilization percentage.

Snapshot

Gets the latest snapshot of the resource utilization of the system.

SystemResources

Gets the CPU and memory limits defined by the underlying system.

Applies to

製品 バージョン (廃止)
.NET (8 (package-provided), 9 (package-provided), 10 (package-provided))