14 October 2012

Performance counter with PID information

In order to retreive a process PID from performance counters you need to create the nex registry key which will add the process PID to the process name:

Location: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PerfProc\Performance
Type: DWORD
Name: ProcessNameFormat
Value: 2

After the new key is added the performance counter process name will look like this:

InstanceName
-----------------
svchost_1144
spoolsv_1032
frameworkservice_1360


Source: http://support.microsoft.com/kb/281884

No comments:

Post a Comment