Extend the pub profiler to print the top two stack frames.