I'm pretty sure that Javassist cannot instrument native methods, so I'm ignoring native methods in the current version of ET2. Need to look into:
- Is this a problem in terms of completeness of the trace? (Probably is).
- Find ways to instrument native methods in spite of the Javassist limitation
- Possible solution: rename the method by mangling the filename uniquely. Then created a non-native stub version that does the tracing, then calls the native version of the function. Very much like how a Python decorator works.