UtilProcessGetProcessPerformanceCounter(Int32, String) Method

Gets a PerformanceCounter of the categry name "Process" with the specified counter name for the process with the specified process id. (PID).

Definition

Namespace: DevCase.Core.Diagnostics.Processes
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static PerformanceCounter GetProcessPerformanceCounter(
	int pid,
	string counterName
)

Parameters

pid  Int32
The process id.
counterName  String
The name of the counter to get (eg. "% Processor Time").

Return Value

PerformanceCounter
The resulting PerformanceCounter.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also