memoryInfo = performance.memory
Performance.memory
Syntax
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
|
15
|
No
|
≤37
|
18
|
No
|
14
|
No
|
1.0
|
See also
- The
Performance
interface it belongs to.
© 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