trace --trackcalls Display the calling relationships exposed by running the program. will give you part of what you want, but only counts. I would just add print('xyx calledl') at the top of each function you want traced. -- Terry Jan Reedy