VisualVM和自我时间 [英] VisualVM and Self Time

查看:229
本文介绍了VisualVM和自我时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找对VisualVM上下文中自我时间实际引用的一致而清晰的解释,以及它与自我时间(cpu)的区别。 自我时间[%]也指自我时间或自我时间CPU。

I've been searching all over for a consistent and clear explanation of what 'self time' actually refers to in the VisualVM context and how does it differ to 'self time (cpu)'. Also does 'self time [%]' refer to self time or self time cpu.

似乎没有太多关于此的文档,或者至少我没有找到它。所以任何想法/输入都将受到赞赏。

There doesn't appear to be much documentation on this or at least I haven't found it. So any thoughts/input will be appreciated.

推荐答案

'自我时间'是在方法本身花费的'挂钟'时间(在该方法中调用的方法中没有时间)。 'self time(cpu)'是一个时间处理器时间,因此它不包括等待,休眠等所花费的时间。采样器中的自身时间和自我(cpu)时间都是实际数据的近似值。 '自我时间[%]'指'自我时间'。

'self time' is a 'wall-clock' time spent in method itself (without time in methods invoked from that method). 'self time (cpu)' is a time processor time, so it does not include time spent waiting, sleeping, etc. Both 'self-time' and 'self (cpu) time' in sampler are approximation of actual data. 'self time[%]' refer to 'self time'.

这篇关于VisualVM和自我时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆