The following command line is used to profile the application MYPROG.EXE using the default settings. PROFILE writes the output to the default file, PROFILE.OUT.
profile myprog.exe
The following command line profiles the program MYPROG.EXE, monitoring both user mode and kernel mode functions executed by this process. The output is written to the file MYPROG.DAT.
profile /k /fmyprog.dat myprog.exe