什么是“文件计数”在devtools中指的是? [英] What does "document count" in the devtools refer to?

查看:115
本文介绍了什么是“文件计数”在devtools中指的是?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以在Chrome DevTools中看到文档计数一词。

You can see the word "Document Count" in Chrome DevTools.

例如,记录在网站下方,文件数量为8或9.
https://developers.google.com/chrome-developer-tools/docs/javascript-memory-profiling?hl=it#dominators

http://oi62.tinypic.com/rmjtw9.jpg

For example, recording the below website, the number of documents is 8 or 9. https://developers.google.com/chrome-developer-tools/docs/javascript-memory-profiling?hl=it#dominators
http://oi62.tinypic.com/rmjtw9.jpg

这是一个问题工具,但我认为这可能是HTML的问题,所以我在这里问。

This is a question of a tool but I think this could be a question of HTML, so I'm asking here.

推荐答案

文件计数维护应用程序在一段时间内使用的文档数量,这些文档保存在内存中(不是垃圾回收)。页面上的iframe及其文档也会计入此处。此计数器可能有助于您确定应用程序中的哪些事件可能导致内存泄漏。

The "Document Count" maintains a count of the number of documents used by your application over time, that are held in memory (not garbage collected). Iframes on your page along with their documents are also counted here. This counter may contribute in helping you identify what events in your application may be leading to a memory leak.

请参阅以下链接:
https://developers.google.com/chrome-developer-tools/docs/timeline

这篇关于什么是“文件计数”在devtools中指的是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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