Idle time in frame rendering in Chrome DevTools

心已入冬 提交于 2019-12-04 14:29:07

This is idle time, the time when the browser is waiting on the CPU or GPU to do some processing. It is shown in the pie chart screenshot in the documentation page How to Use the Timeline Tool.

I can't find any good explanation in the official document, but I just found something elsewhere:

The transparent areas of each vertical bar correspond to idle time, at least, idle on the part of your page. For example, say your first frame takes 15ms to execute and the next takes 30ms. A common situation is that frames are synchronized to refresh rate and in this case, the second frame took slightly longer than 15ms to render. Here, frame 3 missed the "true" hardware frame and was rendered upon the next frame, hence, the length of the second frame was effectively doubled.

Source: Improving Web App Performance With the Chrome DevTools Timeline and Profiles

I'll pass this SO thread onto someone I know of who writes documentation for Google. They might be able to better cover this topic.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!