Find all function calls by a function
问题 What is the best way to find all function calls that a function makes? I want to do this at runtime (likely with a decorator). Is the best way to retrieve the source code with inspect (this means that I will have to have access to the source code...so no interactive interpreter support) and then parse it with ast ? Is there a better way? Python 2.7 preferred, but not required. I'd like it to be simple enough to do myself. If others have done it, I would look at the source code so I could