Output from the Microsoft Windows perfmon utility.
The default presentation of Microsoft Windows perfmon data is raw format. The format can be switched to processed, which removes the repeated server name and splits the datetime column into separate columns, to improve readability.
The following functions allow the querying and updating of the flag that determines whether the perfmon data is manipulated or not:set rc=$$setperfmonpostproc^SystemPerformance(<onoroff>)
where onoroff can be 1 (on) or 0 (off), or the non-case-sensitive words "on" or "off".
A return code of 1 indicates successful update of the flag, 0 indicates a failed update, and -1 indicates a non-Windows platform.
To determine the current format (raw or processed):set status=$$getperfmonpostproc^SystemPerformance()
A return code of 1 indicates processed format, 0 indicates raw format.
In addition, the current status of the flag is reported prior to the profile menu display in the interactive run of ^SystemPerformance.
By default, perfmon monitors the counter definitions specified in the default pbctrs.txt file. To monitor previously defined perfmon counters, import the definition into ^SystemPerformance using: write $$importctrs^SystemPerformance(WindowsCtrName [,SystemPerformanceCtrName [,SystemPerformanceFileName]])
A return code of 0 indicates success and a negative number followed by a reason string indicates failure. Duplicate SystemPerformance counter names are not allowed. If necessary, ^SystemPerformance generates both the internal counter name and file name.
To change the default SystemPerformance counter definition to an exiting definition, use:write $$setctrdefault(SystemPerformanceCtrName)
Return code of 1 indicates success and 0 followed by a reason string indicates failure. If an invalid counter is specified, the builtin defaualt is set.
To reset the default SystemPerformance counter definition, use:do clrctrdefault^SystemPerformance()
To associate a specific SystemPerformance counter definition with an existing profile, use:write $$addctrtoprofile(ProfileName,SystemPerformanceCtrName)
Return code of 1 indicates success and 0 followed by a reason string indicates failure. If either the profile or the counter definition do not exist, the command is not run. |