ResourceUtilization(Double, UInt64, SystemResources) 构造函数

定义

初始化 ResourceUtilization 结构的新实例。

public:
 ResourceUtilization(double cpuUsedPercentage, System::UInt64 memoryUsedInBytes, Microsoft::Extensions::Diagnostics::ResourceMonitoring::SystemResources systemResources);
public ResourceUtilization (double cpuUsedPercentage, ulong memoryUsedInBytes, Microsoft.Extensions.Diagnostics.ResourceMonitoring.SystemResources systemResources);
new Microsoft.Extensions.Diagnostics.ResourceMonitoring.ResourceUtilization : double * uint64 * Microsoft.Extensions.Diagnostics.ResourceMonitoring.SystemResources -> Microsoft.Extensions.Diagnostics.ResourceMonitoring.ResourceUtilization
Public Sub New (cpuUsedPercentage As Double, memoryUsedInBytes As ULong, systemResources As SystemResources)

参数

cpuUsedPercentage
Double

CPU 利用率。

memoryUsedInBytes
UInt64

以字节 (即时) 使用的内存。

systemResources
SystemResources

CPU 和内存限制。

适用于