

p "\Processor(_Total)\% Processor Time" - 80 means threshold of 80% CPU s 20 - means 20 seconds before creating dump ma someprocess.exe - means generate full dump on ntrtscan.exe process

Click the Agree button when the EULA dialog box shows up.Run the following command:procdump -ma someprocess.exe -s 20 -p "\Processor(_Total)\% Processor Time" 80.Open command prompt (run as the Administrator) and change the directory to where the procdump.exe was extracted.Extract the tool (procdump.exe) on a temporary folder like %systemroot%\temp on the target computer.

Download latest version of ProcDump here.It also includes hung window monitoring (using the same definition of a window hang that Windows and Task Manager use), unhandled exception monitoring and can generate dumps based on the values of system performance counters. ProcDump is a command-line utility whose primary purpose is monitoring an application for CPU spikes and generating crash dumps during a spike.
