Performance.memory

语法

timingInfo = performance.memory

属性

jsHeapSizeLimit

上下文内可用堆的最大体积,以字节计算。

totalJSHeapSize

已分配的堆体积,以字节计算。

usedJSHeapSize

当前 JS 堆活跃段(segment)的体积,以字节计算。

规范

无。

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
Node.js
memory
DeprecatedNon-standard

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Non-standard. Check cross-browser support before using.
Deprecated. Not for use in new websites.

查看更多