如何使用VisualVM来获取每个功能的成本 [英] How to use VisualVM to get the time each function costs
本文介绍了如何使用VisualVM来获取每个功能的成本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
VisualVM对我来说是一个不错但有点复杂的工具。
VisualVM is a nice but a little complicated tool for me.
我写了一个包含许多函数的类(在Eclipse中)。如何获取每个函数调用的时间以及执行期间的成本时间信息?
I wrote a class with many functions (in Eclipse). How can I get the information of how many time each function calls and the time they cost when during execution?
推荐答案
参见使用VisualVM进行概要分析,第1部分和使用VisualVM进行概要分析,第2部分获取有关分析以及如何设置分析根和检测过滤器的更多信息。
See Profiling With VisualVM, Part 1 and Profiling With VisualVM, Part 2 to get more information about profiling and how to set profiling roots and instrumentation filter.
这篇关于如何使用VisualVM来获取每个功能的成本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文