Web/API/Performance/memory

From Get docs

Syntax

timingInfo = 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

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet

memory

Non-standard'

Chrome

Full support 7

Edge

Full support ≤79

Firefox

No support No

IE

No support No

Opera

Full support Yes

Safari

No support No

WebView Android

Full support Yes

Chrome Android

Full support 18

Firefox Android

No support No

Opera Android

Full support Yes

Safari iOS

No support No

Samsung Internet Android

Full support 1.0

Legend

Full support  
Full support
No support  
No support
Non-standard. Expect poor cross-browser support.'
Non-standard. Expect poor cross-browser support.


See also