How do you get a stack trace of a running process?

Solution 1:

Maybe this is what you are looking for?

  1. Open Activity Monitor.
  2. Select the target process.
  3. Click on the gear icon in top left.
  4. Select "Sample Process" from appeared menu.

enter image description here

It will display detailed info about process: enter image description here