I am trying to automatically generate a list of function call in their call order for documentation purposes with something like
python - m trace --trackcalls main.py
however, running the trace module with my files seems to show ALL calls, including built-in modules, while I only need the trace for the source files written by me so that I can show the workflow of the program in the documentation. Is there any existing convenient way to only get the trace for specified source files or would I have no other choice but writing an additional script taking the raw trace output and filtering it?