Nucleus .Net Core CMS

Instrumentation.IResourceMonitor Interface

Namespace: Nucleus.Abstractions.Instrumentation
Assembly: Nucleus.Abstractions.dll
Tracks and captures resource utilization of the current process (CPU and memory usage).
GetUtilization (Int32 seconds)
Get the resource utilization of the current process over a specified time window, specified in seconds.
Parameters
Name Type
seconds Int32

CPU utilization sample window, in seconds. Must be greater than 1. Recomended: 5. If seconds is greater than the number of samples collected, the number of samples available are used to calculate the result.