What are the best tools for profiling C/C++ applications on *nix?
(I\'m hoping to profile a server that is a mix of (blocking) file IO, epoll for network and fork()/
I recommend taking stackshots, for which pstack is useful. Here's some more information:
Comments on gprof.
How stackshots work.
A blow-by-blow example.
A very short explanation.
If you want to spend money, Zoom looks like a pretty good tool.