Performance counters are missing
Published 14 May 2018
In certain situations, the performance counters may be missing from the performance counter results during a profiler session.
There are many possible causes for the problem, but they all can usually be fixed by rebuilding the performance counter objects.
To rebuild your performance counters:
Open a command prompt and run the following commands:
cd %systemroot%\system32 lodctr /R
and then reboot the computer. Other performance counters may exist outside the system32 folder.
If you need to rebuild the .NET performance counters, locate the file corperfmonsymbols.ini. This should reside in the %systemroot%\microsoft.net\framework\v4.0.30319 directory, but may be in %systemroot%\inf\.netFramework as well. Use lodctr against this file to rebuild the performance counters from a command prompt by running the following commands:
unlodctr .NetFramework cd %systemroot\inf\.netFramework (or the folder containing corperfmonsymbols.ini) lodctr corperfmonsymbols.ini
For more information, see How to manually rebuild Performance Counter Library values (Microsoft KB)
It is also possible that performance objects are disabled and therefore unavailable to query.
The EXCTRLST.exe tool from Microsoft will show you whether or not a particular performance object is enabled and allow you to enable it. This tool can be downloaded for free from Microsoft
If any of the performance counters are not enabled, they will not appear in the ANTS Memory Profiler performance counter graph.
On some versions of Windows, performance counters can be disabled globally by setting the registry value HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib to "1".
If you're on a newer operating system, please follow the following instructions:
Open a command prompt as Administrator
Enter the following commands:
C: cd windows\system32 LodCtr.exe /S:Backup_Original.INI LodCtr.exe /R:PerfStringBackup.INI
(The /S: switch lets you backup the performance counters before you rebuild with the /R: switch.)
Use perfmon to check the counters display correctly.
For more information see How to rebuild performance counters (TechNet)