[英]Java debugging with execution time in eclipse
I have a large Java project that I am trying to optimize. 我有一个正在尝试优化的大型Java项目。 I didn't write the code so I was using JDB and eclipse(remote debugging) to step through the code and understand it.
我没有编写代码,所以我使用JDB和eclipse(远程调试)来逐步理解代码。 I was wondering if there is a way to get the execution time as well when I step into/step over/step return in a method.
我想知道是否有一种方法可以在我进入/进入/返回方法时获得执行时间。 So that I can only focus on those methods that are taking a lot of time to execute.
因此,我只能专注于那些花费大量时间执行的方法。
You can use "Visual VM" for that. 您可以为此使用“ Visual VM”。
To getting started with VisualVM, 要开始使用VisualVM,
https://docs.oracle.com/javase/6/docs/technotes/guides/visualvm/intro.html https://docs.oracle.com/javase/6/docs/technotes/guides/visualvm/intro.html
IDE support including Eclipse, IDE支持,包括Eclipse,
https://visualvm.github.io/idesupport.html https://visualvm.github.io/idesupport.html
https://blog.idrsolutions.com/2013/05/setting-up-visualvm-in-under-5-minutes/ https://blog.idrsolutions.com/2013/05/setting-up-visualvm-in-under-5-minutes/
VisualVM Eclipse Launcher - Java Profiling Tutorial VisualVM Eclipse Launcher-Java性能分析教程
Sample Demo 样本演示
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.