Make the profiler stack a runtime stack, rather than a static stack.

This makes the output a bit more useful, as you can actually see what
calls are making what calls.