---
title: Performance.memory
slug: Web/API/Performance/memory
browser-compat: api.Performance.memory
---
{{APIRef}}

## Syntax

```js
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

{{Compat}}

## See also

- The {{domxref("Performance")}} interface it belongs to.
