Yes, we are trying to modify PyPy to meet the need.
Our plans are:
1. Find a similar function as "PyEval_EvalFrameEx()" in PyPy, and add a function logFunction() inside it.
2. In logFunction(), analyze the frame/callstack. If it is a function call from "Class A" to external function, log the function call. If it is possible, we might only need to log the same function call only once to minimize the perfomrance overhead.
The problem is we've no ideas on which function in PyPy is similar to "PyEval_EvalFrameEx()" in Python.
Or do you have any alternative good ideas to do this?