method call recording without third-party profiler
hi all,
*method call recording without third-party profiler*
I would like to add basic profiler capability to my application, in order to monitor another java program
I would like to be able to record method calls on a jvm instance, of another program's methods.
I would like to do this without a profiler, using just java code.
I have thought about using a reflection wrapper....but what if a reflected call, calls another method, the method called will not be recorded...that wont work.
also, I have thought about decompiling the program class files, and recompiling wrappers around each method.....but for this purpose, it is a waste.
Is there any way on listening in on method calls, so I can eg.
a) be able to record the amount of time spent in each method,
b)as well as how frequently each method in my program is accessed?
-jeros

