信息堆大小 [英] Information heap size
问题描述
我可以从Chrome中的 performance.memory
对象获取哪些信息?
这些数字是什么意思? (他们是kb还是字符)
我可以从这些数字中学到什么?
What information can I obtain from the performance.memory
object in Chrome?
What do these numbers mean? (are they in kb's or characters)
What can I learn from these numbers?
performance.memory的示例值
MemoryInfo {
jsHeapSizeLimit: 793000000,
usedJSHeapSize: 10000000,
totalJSHeapSize: 31200000
}
推荐答案
我可以从Chrome中的performance.memory对象获取哪些信息?
What information can I obtain from the performance.memory object in Chrome?
属性名称应该非常具有描述性。
The property names should be pretty descriptive.
这些数字是什么意思? (它们是kb还是字符)
What do these numbers mean? (are they in kb's or characters)
docs 状态:
这些值被量化为不将私人信息暴露给
攻击者。
The values are quantized as to not expose private information to attackers.
请参阅 WebKit补丁关于量化值如何暴露。
测试特别有助于解释它是如何工作的。
See the WebKit Patch for how the quantized values are exposed. The tests in particular help explain how it works.
我可以从这些数字中学到什么?
What can I learn from these numbers?
您可以识别内存管理问题。请参阅 http://www.html5rocks.com/en/tutorials/memory/effectivemanagement/ 了解具体方法gmail中使用了 performance.memory
API。
You can identify problems with memory management. See http://www.html5rocks.com/en/tutorials/memory/effectivemanagement/ for how the performance.memory
API was used in gmail.
这篇关于信息堆大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!