Some quick additions.  It records calling cost for each function now, and you can sort out the functions by calling cost into an array.

Signed-off-by: Daniel Shumway <shumway.danny@gmail.com>