Chrome开发者工具中Javascript旁边的栏中显示的时间是几点? [英] What is the time that's shown in a column next to Javascript in the Chrome developer tools?

查看:67
本文介绍了Chrome开发者工具中Javascript旁边的栏中显示的时间是几点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很明显,它与函数花费多长时间有关,它具体代表什么?前任.如果在执行过程中多次调用该函数,将使用什么值?

It clearly has something to do with how long the function takes, what specifically does it represent? Ex. if the function was called multiple times during execution, what value is used?

推荐答案

确实应该是每行总时间的细分.

It is indeed supposed to be a breakdown of the total time spent on each line.

如果多次调用某条线,则您看到的值是该条线总共花费的时间.

If a line is called multiple times, the value you see is the combined time spent in total for that line.

我同意逐行细分有时确实会产生一些奇怪的结果.我会做更多的研究.

I agree that the line-by-line breakdown does yield some strange results sometimes. I'll look into that more.

更新:DevTools团队表示该配置文件来自V8.因此,他们的回答只是这就是V8如何花费时间的原因".我会看看我能否在这里邀请V8的男生或女生参加进一步的讨论.

Update: DevTools team says that the profiling comes from V8. So their response was just "this is how V8 attributes the time spent." I'll see if I can get a V8 guy or girl in here to discuss further.

这篇关于Chrome开发者工具中Javascript旁边的栏中显示的时间是几点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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