TypePerf–Good substitute for PerfMon.

1 Feb

TypePerf is the command line tool which writes the performance data to the log file or to the console window .I feel this tool can be useful to performance engineers who wants to monitor few stats and to those who wants to maintain a some distance from PerfMon. This tool basically queries the same performance objects as PerfMon does, so data retrieved by this tool is exactly the same as retrieved by PerfMon. I feel this tool is easy to use compare to PerfMon for certain situations where in we just need a very few counters to monitor. We can also automate monitoring using this tool exactly the way we do with PerfMon. In order to start using this tool, one needs to go to CMD Prompt and then type typeperf.

C:\>typeperf /?

Microsoft r TypePerf.exe (6.1.7600.16385)

Typeperf writes performance data to the command window or to a log file. To stop Typeperf, press CTRL+C.


typeperf { <counter [counter …]> | -cf <filename> | -q [object] | -qx [object] } [options]


<counter [counter …]> Performance counters to monitor.


-? Displays context sensitive help.

-f <CSV|TSV|BIN|SQL> Output file format. Default is CSV.

-cf <filename>            File containing performance counters to monitor, one per line.

-si <[[hh:]mm:]ss>      Time between samples. Default is 1 second.

-o <filename>             Path of output file or SQL database. Default is STDOUT.

-q [object]                   List installed counters (no instances). To

                                   list counters for one object, include the

                                   object name, such as Processor.

-qx [object]                   List installed counters with instances. To

                                     list counters for one object, include the

                                     object name, such as Processor.

-sc <samples>              Number of samples to collect. Default is to

                                     sample until CTRL+C.

-config <filename>       Settings file containing command options.

-s <computer_name>   Server to monitor if no server is specified

                                     in the counter path.

-y                                  Answer yes to all questions without prompting.


Counter is the full name of a performance counter in

“\\<Computer>\<Object>(<Instance>)\<Counter>” format,

such as \\Server1\Processor(0)\% User Time.

Below are the some sample queries I ran successfully to retrieve performance stats on  my windows 7 box,

C:\>typeperf “\Processor(_Total)\% Processor Time”

C:\>typeperf “\Memory\Available bytes” “\processor(_total)\% processor time”

C:\>typeperf “\Processor(*)\% Processor Time”

Finally in case if you need more information about this command,I suggest you to visit Microsoft site and do a quick search for typeperf.


I feel this tool is supported by all version of windows operating system starting from Windows XP to Windows 7.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: