2

I'd like to use typeperf or logman to process and/or log some basic system health information on a PC (running WinXP), but I can't find a description of common performance counters, just "typeperf -q" and I get a bunch of stuff that isn't really self-explanatory.

Are these functions documented somewhere?

Jason S
  • 616
  • 1
  • 16
  • 28

2 Answers2

2

Are you aware of the official Microsoft documentation of the available perfmon counters?

the-wabbit
  • 40,319
  • 13
  • 105
  • 169
  • 1
    Thanks. No, I wasn't aware of them. MSDN docs are dismal and poorly linked; I found out about typeperf & logman from finding this answer http://serverfault.com/a/140978/3221 but that logpage is lame in the extreme, and no docs on typeperf seem to reference the link you posted. Thanks. (and a big fat raspberry to Redmond, WA for 20+ years of crappy documentation) – Jason S Jan 11 '12 at 23:20
  • Is there an updated documentation for this? – Shirkam May 20 '22 at 12:24
1

You can easily gain access to the performance counters and their meaning by launching Perfmon.exe

By default, Perfmon.exe under XP gives you three bottlenecks to observe, Memory pages per second, Disk average queue length, and percent processor time.

Clicking the + near the top of the page gives you performance objects (like processor, or memory) and specific counters that you can select and add to the graph. Choose one and click the 'Explain' button. The 'Explain' window opens, and gives information about what is monitored.

Typeperf.exe -q extracts counters from the same place that perfmon.exe does. For instance, in perfmon.exe, object processor and counter % processor time translate into this counter in typeperf.exe:

typeperf.exe "\Processor(*)\% Processor Time"

The asterix means 'all counters', and typerf will give you each numbers for instance and a total (think of a two processor computer).

If you have the rights, and are connected, you can specify a remote computer, using a unc:

typeperf.exe "\\mycomputer\Processor(*)\% Processor Time"

Remember to use quotes around counters with spaces.

RobW
  • 2,766
  • 1
  • 17
  • 22