Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Poor man's profiler (poormansprofiler.org)
35 points by emilis_info on Dec 28, 2009 | hide | past | favorite | 2 comments


Summary: Run gdb on your program, hit control-c and run 'thread apply all bt' a few times, to understand where your program is spending time.

I've actually used this a lot in the past, it's surprisingly useful!


If you can run your app on Linux, it'll probably run with little trouble on OpenSolaris or FreeBSD (even if it's just a VM). For profiling, dtrace is definitely worth the effort.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: