How can I start monitoring from the command line without opening Performance Explorer?
It is also necessary to add some additional functionality to the command line which handles /NOGUI mode correctly. These options are /NOEXIT, /EXIT, /SINGLEINSTANCE and /SINGLEINSTANCE[:NOSTARTUP]
In /NOGUI mode this is used to prevent the automatic termination of Performance Explorer after processing the commandline
Searches for an existing instance. When used with NOSTARTUP, no new instances will be created.
Closes Performance Explorer without saving changes to the workspace.
The correct usage of the command lines is as follows:
Perfexp.exe /pew:c:\test.pew /monitordir:c:\temp\perf /action:startallmonitors /nogui /singleinstance /noexit
Save TSD data and stop monitoring
Perfexp.exe /pew:c:\test.pew /monitordir:c:\temp\perf /action:stopallmonitors /nogui /singleinstance[:nostartup] /exit