[HTML 5 Performance] Measuring used JS heap size in chrome
Posted Answer1215
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[HTML 5 Performance] Measuring used JS heap size in chrome相关的知识,希望对你有一定的参考价值。
In this lesson we will see how to measure the used JS heap size in chrome. This can be used for various needs from performance debugging to production monitoring of apps.
function measureMemory() { console.log(`${performance.memory.usedJSHeapSize / Math.pow(1000, 2)} MB`); }
以上是关于[HTML 5 Performance] Measuring used JS heap size in chrome的主要内容,如果未能解决你的问题,请参考以下文章