How do you get a stack trace of a running process?
Maybe this is what you are looking for?


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




It will display detailed info about process: