 There is an external tool called gprof2dot capable of converting the call graph from gprof into graphical form.At run-time, timing values are obtained by statistical sampling.Sampling is done by probing the target program's program counter at regular intervals using operating system interrupts (programmed via profil(2) or setitimer(2) syscalls).