JS的Chrome CPU配置文件中'self'和'total'的区别 [英] Difference between 'self' and 'total' in Chrome CPU Profile of JS

查看:639
本文介绍了JS的Chrome CPU配置文件中'self'和'total'的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Chrome代码中的'self'和'total'列之间的区别是什么?

i.stack.imgur.com/JRFqN.pngalt =在这里输入图片描述>

解决方案

<$ c $



总计自己花费了多少时间直接在该功能上进行工作。 c>是在该函数中花费了多少时间以及它所调用的函数。

What is the difference between the 'self' and 'total' columns in the Chrome CPU profiling of JS code?

解决方案

self is how much time was spent doing work directly in that function.

total is how much time was spent in that function, and in the functions it called.

这篇关于JS的Chrome CPU配置文件中'self'和'total'的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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