spindump
Profile entire system during a time interval. tldr-pages
On macOS
macOS
Profile entire system during a time interval. Used for normal application force quits to display a dialog offering details and the option to report to Apple.
Sample all processes for 10 seconds with 10 milliseconds of run time between samples
sudo spindumpIdentifySort a specific process topmost for a custom duration and interval
sudo spindump pid duration_seconds interval_millisecondsIdentifyWrite output to a specific file
sudo spindump pid -o path/to/output.txtIdentify