C# Class NRack.Server.Utils.ProcessPerformanceCounter

Mostra file Open project: kerryjiang/NRack Class Usage Examples

Public Methods

Method Description
Collect ( StatusInfoCollection statusCollection ) : void
Dispose ( ) : void
ProcessPerformanceCounter ( Process process, PerformanceCounterInfo counters ) : System
ProcessPerformanceCounter ( Process process, PerformanceCounterInfo counters, bool collectThreadPoolInfo ) : System

Private Methods

Method Description
GetPerformanceCounterInstanceName ( Process process ) : string
RegisterSameNameProcesses ( Process process ) : void
SameNameProcess_Exited ( object sender, EventArgs e ) : void
SetupPerformanceCounters ( ) : void
SetupPerformanceCounters ( string instanceName ) : void

Method Details

Collect() public method

public Collect ( StatusInfoCollection statusCollection ) : void
statusCollection StatusInfoCollection
return void

Dispose() public method

public Dispose ( ) : void
return void

ProcessPerformanceCounter() public method

public ProcessPerformanceCounter ( Process process, PerformanceCounterInfo counters ) : System
process System.Diagnostics.Process
counters PerformanceCounterInfo
return System

ProcessPerformanceCounter() public method

public ProcessPerformanceCounter ( Process process, PerformanceCounterInfo counters, bool collectThreadPoolInfo ) : System
process System.Diagnostics.Process
counters PerformanceCounterInfo
collectThreadPoolInfo bool
return System