The pixtool.exe command line tool allows you to take immediate timing captures of your PC and server code, including code running in Azure VMs. The resulting captures can be opened and analyzed in PIX.
Note that pixtool.exe only supports capturing code running on Windows. Xbox timing captures are not supported.
XDK setup installs pixtool.exe to the PIX directory under Program Files. For example, the version of pixtool.exe that ships in the May 2018 XDK is installed to “C:\Program Files\Microsoft PIX\May 2018”.
Use the attach and take-timing-capture verbs to take a capture using pixtool.exe as in the following example:
pixtool.exe attach *pid* take-timing-capture output.pix3 --duration=200 --stacks
Supply a file name to tell pixtool.exe where you’d like your capture saved. Options to customize the capture duration, sampling rate and callstack collection may be supplied along with the take-timing-capture verb.
take-timing-capture filename [–duration=n] [–sampleRate=n] [–stacks]</code>
filename Target capture file path. The target path directory must exist.
--duration=<n> Capture duration in milliseconds
Default: 100
--sampleRate=<n> CPU sampling rate in samples per second
Default: 1000, Min: 1, Max: 8000
--stacks Capture callstacks on CPU samples and context switches