3 ms·
On macOS I just use Activity Monitor's sampling tool, which gives me the hottest stack trace. Something similar probably exists for other platforms? If not, you
by saagarjha 6y ago
On macOS I just use Activity Monitor's sampling tool, which gives me the hottest stack trace. Something similar probably exists for other platforms? If not, you can emulate it poorly by attaching a debugger and repeatedly interrupting execution and seeing if anything shows up many times–if your program is truly stuck, it will generally be easy to see why because it'll show up in all your traces.