You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
3.0 KiB
62 lines
3.0 KiB
/*****************************************************************************\
|
|
|
|
Author: Corey Morgan (coreym)
|
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
\*****************************************************************************/
|
|
|
|
#include "resource.h"
|
|
|
|
#include <windows.h>
|
|
#include <ntverp.h>
|
|
|
|
#define VER_FILETYPE VFT_APP
|
|
#define VER_FILESUBTYPE VFT2_UNKNOWN
|
|
#define VER_FILEDESCRIPTION_STR "Command line performance monitor"
|
|
#define VER_INTERNALNAME_STR "TypePerf.exe"
|
|
#define VER_ORIGINALFILENAME_STR "TypePerf.exe"
|
|
|
|
#include "common.ver"
|
|
#include "varg.rc"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// String Table
|
|
//
|
|
|
|
STRINGTABLE DISCARDABLE
|
|
BEGIN
|
|
IDS_PROGRAM_DESCRIPTION "Typeperf writes performance data to the command window or to a log file. \
|
|
To stop Typeperf, press CTRL+C."
|
|
|
|
IDS_PARAM_COUNTERS "counters`c`counter`Performance counters to monitor."
|
|
IDS_PARAM_INPUT "counterfile`cf`*`File containing performance counters to monitor, one per line."
|
|
IDS_PARAM_FORMAT "format`f`CSV|TSV|BIN|SQL`Output file format. Default is CSV."
|
|
IDS_PARAM_OUTPUT "out`o`*`Path of output file or SQL database. Default is STDOUT."
|
|
IDS_PARAM_SAMPLES "samples`sc`samples`Number of samples to collect. Default is to sample until CTRL+C."
|
|
IDS_PARAM_INTERVAL "interval`si`*`Time between samples. Default is 1 second."
|
|
IDS_PARAM_QUERY "query`q`object`List installed counters (no instances). To list counters for one object, include the object name, such as Processor."
|
|
IDS_PARAM_QUERYX "queryall`qx`object`List installed counters with instances. To list counters for one object, include the object name, such as Processor."
|
|
IDS_PARAM_SERVER "server`s`computer_name`Server to monitor if no server is specified in the counter path."
|
|
IDS_PARAM_YES "force`y`*`Answer yes to all questions without prompting."
|
|
|
|
IDS_DEFAULT_OUTPUT "output"
|
|
|
|
IDS_MESSAGE_NOCOUNTERS "Error: No valid counters.\n"
|
|
IDS_MESSAGE_EXIT "Exiting please wait..."
|
|
IDS_MESSAGE_CEXIT " \n"
|
|
IDS_MESSAGE_BADFORMAT """%1!s!"" is not a valid format.\n"
|
|
IDS_MESSAGE_BADCOUNTER "Warning: Counter ""%1!s!"" is not accessible. Message: 0x%2!08x!\n"
|
|
|
|
IDS_MESSAGE_HELPTEXT "\nNote:\n \
|
|
Counter is the full name of a performance counter in\n \
|
|
""\\\\<Computer>\\<Object>(<Instance>)\\<Counter>"" format,\n \
|
|
such as ""\\\\Server1\\Processor(0)\\%% User Time"".\n"
|
|
|
|
IDS_EXAMPLE_COUNTERS "typeperf ""\\Processor(_Total)\\%% Processor Time"""
|
|
IDS_EXAMPLE_QUERYALL "typeperf -qx PhysicalDisk -o counters.txt"
|
|
IDS_EXAMPLE_FORMAT "typeperf -cf counters.txt -si 5 -sc 50 -f TSV -o domain2.tsv"
|
|
|
|
IDS_MESSAGE_SPINNER "|/-\\"
|
|
END
|