Performance.memory

Syntax

memoryInfo = performance.memory

Attributes

jsHeapSizeLimit

The maximum size of the heap, in bytes, that is available to the context.

totalJSHeapSize

The total allocated heap size, in bytes.

usedJSHeapSize

The currently active segment of JS heap, in bytes.

Specifications

None.

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
memory
7
79
No
No
Yes
No
≤37
18
No
Yes
No
1.0

See also

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Performance/memory