Dynamic method invocation trace logging in JVM

时间:2016-04-25 09:42:21

标签: java trace method-invocation

I want to analysis a large open-sourced java framework. In order to do so, I want to log the method invocation sequences during its execution. The output should include multiple entries, each entry contains "method name, call time, exit time". It's hard to modify the source code of the original framework to enable this tracing task. I hope to find some profiliers or approaches. Thanks!

1 个答案:

答案 0 :(得分:0)

我自己找到了一个有用的工具@ https://code.google.com/archive/p/javashot/,虽然我还没有尝试过。 还欢迎任何更多的建议!