How can I tell if a function is called in a loop within python's tracer function?

121 views Asked by At

In the tracer callback set with python's sys.settrace(), I can get the function name, line number, etc. Now I want to know whether the current function being traced is called in a loop by its caller. Is there a way to do this?

0

There are 0 answers