简体   繁体   English

做性能分析时可以信任jmc(Java任务控制)吗?

[英]Can one trust jmc(Java mission control) when doing performance analysis?

Jave mission control has some great features. Jave的任务控制功能非常强大。 For example one can see the "Hot Methods" of the application or there are "Call Tree" section when one can find top consuming functions call hierarchy. 例如,当人们可以找到最常用的函数调用层次结构时,可以看到应用程序的“热方法”,也可以看到“调用树”部分。 But I am wondering can one really rely on profiling results, when you are interested on finding performance bottlenecks(in terms of time)? 但是我想知道,当您有兴趣发现性能瓶颈(就时间而言)时,真的可以依靠性能分析结果吗? For example one can put some "sleeps" inside some functions and seems profiler will not point out them. 例如,可以在某些函数中放置一些“睡眠”,并且似乎探查器不会指出它们。

Hot Methods lists the methods that execute Java code the most. 热门方法列出了最能执行Java代码的方法。 If your application is in native code or sleeping it will not show in that table. 如果您的应用程序是本机代码或处于休眠状态,它将不会显示在该表中。

Look at the Latencies tab to see latencies, ie Thread.sleep. 查看“延迟”选项卡以查看延迟,即Thread.sleep。

您可以使用事件->“图形”选项卡查看睡眠,锁定...它将帮助您了解线程在这些线程上花费了多长时间

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM