Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
On Linux, you can examine /proc/$PID/stack. Is there an equivalent on OSX?
Maybe this is what you are looking for?
It will display detailed info about process: