Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  10] [ 1]  / answers: 1 / hits: 8067  / 11 Years ago, mon, january 20, 2014, 12:00:00

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?



Example values of performance.memory



MemoryInfo {
jsHeapSizeLimit: 793000000,
usedJSHeapSize: 10000000,
totalJSHeapSize: 31200000
}

More From » heap-size

 Answers
4

What information can I obtain from the performance.memory object in Chrome?




The property names should be pretty descriptive.




What do these numbers mean? (are they in kb's or characters)




The docs state:




The values are quantized as to not expose private information to
attackers.



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?




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.


[#48526] Sunday, January 19, 2014, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
irvingjamieb

Total Points: 743
Total Questions: 113
Total Answers: 128

Location: Suriname
Member since Sun, Jun 13, 2021
3 Years ago
;