Thrum

How do you sample a process that is stuck or using a lot of CPU?

Last reviewed: 19 November 2026.

In Activity Monitor, select the process, click the More button in the toolbar and choose Sample Process; it records what every thread is doing for a few seconds and shows the result as a call tree you can save. In Terminal, sample followed by a PID or name does the same for 10 seconds by default and writes a report to /tmp.

How do you take a sample?

  1. Select the process. Open Activity Monitor and click the busy or Not Responding process. Choose View > All Processes if it is a system process.
  2. Sample it. Click the More button in the toolbar and choose Sample Process. You can also double-click the process and click Sample.
  3. Wait. Activity Monitor samples for a few seconds, then opens a window with the report.
  4. Save the report. Click Save to keep it as a text file, for example to send to the app's developer.

How do you sample from Terminal?

sample Safari 5 -file ~/Desktop/safari.sample.txt
sample 1234
sample Preview -wait

The first samples Safari for 5 seconds and writes to the Desktop. The second samples PID 1234 for the default 10 seconds, prints the report and also saves it in /tmp with the app name, date and time in the file name. -wait waits for a process to start, which is useful for an app that hangs at launch. Processes owned by root or other users need sudo.

How do you read the report?

The report lists each thread with a call tree. The number before each line is how many samples saw that function on the stack. Follow the largest numbers down from the top of the main thread to find where it spends its time.

The tool suspends the process briefly at each sampling point (every millisecond by default), so the app may stutter while it is sampled.

What if the whole Mac is stuck?

A sample covers one process. sudo spindump samples every process on the Mac, including the kernel, which helps when no single app is to blame. macOS also runs spindump on its own when you force quit an app that is not responding, and saves the report in /Library/Logs/DiagnosticReports/.

How can Thrum help?

Thrum keeps a live CPU graph in the menu bar. One click shows the eight processes using the most CPU. An optional alert tells you when a process stays above a CPU level you choose (50 to 200% of one core) for 1 to 10 minutes.

Thrum is $4.99 once with a 14-day free trial and no account. It requires macOS 26 Tahoe on Apple silicon or Intel.

Questions

Is sampling a process safe?

Yes. It only reads the process's call stacks. The process keeps running afterwards.

Can I read the report without being a developer?

Partly. Function names often say what the app was doing, such as loading images or waiting for the network, which helps when you describe the problem to support.

Sources