From Sat Dec  2 11:17:35 2000
Date: Fri, 1 Dec 2000 16:10:49 -0800
From: Jayson Ryckman 
To: Michael Main 
Cc: Teaching Assistants 
Subject: Gprof

It's actually pretty simple.

1) Recompile the program with the -pg flag.
2) Run the program normally.
3) Type from the command line:
    gprof *program name*

You might want to either write it to a file or pipe it to more because
it's a bit long.  For example, to write the gprof report for a program
called sorttests to a file called report1.txt, you can type:
    gprof sorttests >report1.txt
Have fun, let me know if there is anything else you
want to know about it.

Oh yeah, first it outputs the time results. Then it has a call graph
which will tell you which functions were called by whom.