ResourceUtilization(Double, UInt64, SystemResources) Constructor
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.
Initializes a new instance of the ResourceUtilization struct.
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)
Parameters
- cpuUsedPercentage
- Double
CPU utilization.
- memoryUsedInBytes
- UInt64
Memory used in bytes (instantaneous).
- systemResources
- SystemResources
CPU and memory limits.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.