Windows Tools

PFMon Syntax

Overview | Notes | Syntax | Examples | Related Tools Open Command Prompt

PFMon uses the following syntax:

One Step pfmon {/p pid|AppCommandLine} [/n | /l] [/c | /h] [/k | /K] [/d] [/?]

Parameters

/p pid
Attaches to an existing process ID (PID). When the command window is closed, the attached process is terminated. Do not use the /p parameter when specifying AppCommandName.
AppCommandLine
Specifies the command line of the application to monitor. If the application is not located in the current directory, you might need to enter the path along with the application name. Do not specify AppCommandName if you are using /p pid.

When you terminate the application specified by AppCommandLine, Pfmon displays a summary of the faults that occurred while executing the application.

/n
Writes faults as they occur in the running program to Pfmon.log, but does not display those faults in the command window.
/l
Writes faults as they occur in the running program to Pfmon.log.
/c
Displays only soft page faults and summary information.
/h
Displays only hard page faults and summary information.
/k
Displays page faults that occur in both the kernel mode and the user mode.
/K
Displays only those page faults that occur in the kernel mode.
/d
Displays the following tab-delimited information:
/?
Displays help about the tool syntax.

Examples

See Example 1: Monitor an Existing Process and Example 2: Monitor an Invoked Process.