Java:我如何看到我的代码的哪些部分运行最多? (分析) [英] Java: How can I see what parts of my code are running the most? (profiling)
本文介绍了Java:我如何看到我的代码的哪些部分运行最多? (分析)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道我的代码的哪一部分我的错误)在此期间正在执行。
我已经尝试过调试,但是在这种情况下,逐步调试功能不会很好。
有什么工具可以告诉我我的问题在哪里吗?我正在使用Eclipse。
解决方案
这被称为分析。您的IDE可能包含一个:请参阅 Java中的开源分析程序。
I am writing a simple checkers game in Java. When I mouse over the board my processor ramps up to 50% (100% on a core).
I would like to find out what part of my code(assuming its my fault) is executing during this.
I have tried debugging, but step-through debugging doesn't work very well in this case.
Is there any tool that can tell me where my problem lies? I am currently using Eclipse.
解决方案
This is called "profiling". Your IDE probably comes with one: see Open Source Profilers in Java.
这篇关于Java:我如何看到我的代码的哪些部分运行最多? (分析)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文