http://www.gnu.org/software/binutils/
http://edu.inf.shizuoka.ac.jp/lecture/2007/X151/text/gprof.html