Chrome堆快照-分离的节点没有颜色 [英] Chrome Heap Snapshot -- no colors for detached nodes

查看:173
本文介绍了Chrome堆快照-分离的节点没有颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注"<发现"下的本教程堆快照导致分离的DOM树内存泄漏".

I'm following this tutorial under "Discover detached DOM tree memory leaks with Heap Snapshots".

当我搜索分离的节点时,会看到一堆分离"元素.但是,当我展开它们时,所包含的元素都不是红色或黄色,如本教程中所述.

When I search for detached nodes, I see a bunch of "Detached" elements. But when I expand them, none of the contained elements are red or yellow, as described in the tutorial.

此行为是否已更改?我在Mac上使用的是70.0.3538.77.

Has this behavior changed? I'm using 70.0.3538.77 for Mac.

推荐答案

跟随此提案,颜色代码已替换为带有工具提示的图标

Following this proposal, the color coding was replaced by icons with tooltips:

可从窗口访问的JS对象
是:黄色突出显示
现在:一个小窗口的图标

JS object that is reachable from window
Was: yellow highlight
Now: icon of a small window

与树分离的DOM对象
是:红色突出显示
现在:带有一把剪刀的图标

DOM object that is detached from the tree
Was: red highlight
Now: icon with a pair of scissors

这篇关于Chrome堆快照-分离的节点没有颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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