How do I get a list of Methods called from a Class in Eclipse IDE?

前端 未结 7 1813
眼角桃花
眼角桃花 2021-01-23 04:38

I am using Eclipse IDE for my Java project. I need a list of methods which are being called from a particular class i.e. I need to see a list of all the methods which are being

7条回答
  •  忘掉有多难
    2021-01-23 04:52

    If it is at runtime, you could use a Dynamic Proxy. The dynamic proxy is called before the method invocations of your class and you can log somewhere (to another class, or a file or whatever) which methods have been called.

提交回复
热议问题