C# Class Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.Implementation.WebAppPerformanceCollector.CPUPercenageGauge

Gauge that computes the CPU percentage utilized by a process by utilizing the last computed time.
Inheritance: ICounterValue
ファイルを表示 Open project: Microsoft/ApplicationInsights-dotnet-server Class Usage Examples

Public Methods

Method Description
CPUPercenageGauge ( string name, ICounterValue value ) : System

Initializes a new instance of the CPUPercenageGauge class.

GetValueAndReset ( ) : double

Returns the percentage of the CPU process utilization time with respect to the total duration.

Method Details

CPUPercenageGauge() public method

Initializes a new instance of the CPUPercenageGauge class.
public CPUPercenageGauge ( string name, ICounterValue value ) : System
name string Name of the SumUpCountersGauge.
value ICounterValue Gauges to sum.
return System

GetValueAndReset() public method

Returns the percentage of the CPU process utilization time with respect to the total duration.
public GetValueAndReset ( ) : double
return double