Java分析 - 如何通过方法分析我的应用程序获取方法? [英] Java profiling - how can I get a method by method analysis of my application?
问题描述
我想运行我的Java应用程序并且对于给定的工作负载能够看到:
- 调用给定函数的次数
- 每个函数调用的相对价格是多少(即每个函数执行需要多长时间)
<我大致知道瓶颈在我的应用中的位置,但我需要一个更细粒度的视图来缩小它。
谢谢
编辑 jvisualvm看起来像工具 - 它在大约30秒内识别出问题。我只需要知道自我时间在方法配置文件的上下文中意味着什么。谢谢
在Sun的Java 6中运行的程序的最简单方法是在jdk中使用jvisualvm程序。允许您无需任何特殊设置即可附加和配置文件。
I want to run my Java app and for a given workload be able to see:
- how many times a given function was called
- how expensive each function call is in relative terms (i.e. how long each takes to execute)
I know broadly where the bottle neck is in my application but I need a much more fine grained view in order to narrow it down.
Thanks
Edit jvisualvm looks like the tool - it identified the problem in about 30 seconds. I just need to know what 'selftime' means in the context of a method profile. Thanks
Simplest approach for a program running in java 6 from Sun is to use the jvisualvm program in the jdk. Allows you to attach and profile without any special setup.
这篇关于Java分析 - 如何通过方法分析我的应用程序获取方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!