How do you get a stack trace of a running process? On Linux, you can examine /proc/$PID/stack. Is there an equivalent on OSX?
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: