手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

chrome浏览器如何进行js heap memory快照

时间:2024-10-22 12:48:40

1、首先,打开chrome浏览器,从菜单打开devtool。

chrome浏览器如何进行js heap memory快照

2、接着点击Memory,点击Memory下方的按钮创建快照。

chrome浏览器如何进行js heap memory快照

3、创建快照之后,即可看到按照object的构造器分类的heap memory大小。

chrome浏览器如何进行js heap memory快照

4、接着,在构造器列表中选中一个构造器之后,即可看到对应的object列表。

chrome浏览器如何进行js heap memory快照

5、切换到统计,可以看到不同类型的object使用的内存比例,如图所示。

chrome浏览器如何进行js heap memory快照

6、如果要保存快照到文件,点击快照旁边的save,如图所示。

chrome浏览器如何进行js heap memory快照

7、另外,也可以使用Memory工具录制一段时间。选择如图的第二项,点击Start。

chrome浏览器如何进行js heap memory快照
chrome浏览器如何进行js heap memory快照
chrome浏览器如何进行js heap memory快照
chrome浏览器如何进行js heap memory快照
© 手抄报圈