How to generate the function stack trace of the last request made? Is there a module that can essentially show you the function stack trace of the last request made?

Say I have a form that I submit.  After the page loads with the result from the request, I would like to see a list of all the functions that were called, start to finish, that resulted in the currently loaded page.
A function trace will only show you the function calls that lead directly to that piece of code.

PHP provides the functions debug_print_backtrace() for that, which is however not very readable but it will result a huge amount of text. devel.module provides a ddebug_backtrace()function, which us much easier to read.

To see all function calls of a single page, you need to install a profiler like XhProf.