gpt4 book ai didi

jprofiler - jprofiler 中的固有时间

转载 作者:行者123 更新时间:2023-12-02 22:28:08 25 4
gpt4 key购买 nike

考虑以下方法模板:

methodA()
{
Print (abc); // Instruction 1
Calculate(a+b+c); // Instruction 2

Call methodB();// Instruction 3
Call methodC();// Instruction 4

Print(abcd); // Instruction 5
for(; ;) // Instruction 6
{
. ..
}
}

JProfiler 中 methodA() 的固有时间显示了 methodA() 单独花费的总时间。这个固有时间是 CPU 时间 + I/O 等待时间的总和还是只是 CPU 时间?

最佳答案

时间类型取决于调用 TreeView 右上角的线程状态选择器。如果设置为“Runnable”,则显示的时间测量CPU处于可运行状态的时间。如果设置为“所有状态”,则包括I/O、等待和阻塞。

关于jprofiler - jprofiler 中的固有时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17649185/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com