For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see QueryCounters on docs.microsoft.com. The QueryCounters option lists the CPU (hardware) performance counters that are available on the computer.

QueryCounters must be the only option on the command line.

VSPerfCmd.exe /QueryCounters  



When you are using the instrumentation method, the profiler can collect the values of one or more CPU performance counters at each data collection event. When you are using the sampling profiling method, you can specify one counter event and the number of event occurrences to be used as the sampling interval.

Different processors expose different CPU performance counters. The profiler defines a set of generic counters that can be used on almost all processors. The QueryCounters option lists both the names of the generic counters and the names of the counters that are specific to the processor.

Profiling Stand-Alone Applications
Profiling ASP.NET Web Applications
Profiling Services