Share via


ResourceUtilization(Double, UInt64, SystemResources) Constructor

Definition

Initializes a new instance of the ResourceUtilization struct.

public ResourceUtilization (double cpuUsedPercentage, ulong memoryUsedInBytes, Microsoft.Extensions.Diagnostics.ResourceMonitoring.SystemResources systemResources);

Parameters

cpuUsedPercentage
Double

CPU utilization.

memoryUsedInBytes
UInt64

Memory used in bytes (instantaneous).

systemResources
SystemResources

CPU and memory limits.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)