Welcome What's new in Chrome extensions API reference Samples
Welcome What's new in Chrome extensions API reference Samples

chrome.system.memory

  • Description

    The chrome.system.memory API.

  • Permissions
    system.memory

Summary

Types

MemoryInfo

Properties

  • availableCapacity

    number

    The amount of available capacity, in bytes.

  • capacity

    number

    The total amount of physical memory capacity, in bytes.

Methods

getInfo

chrome.system.memory.getInfo(
  callback?: function,
)
Promise

Get physical memory information.

Parameters

  • callback

    function optional

    The callback parameter looks like: (info: MemoryInfo) => void

Returns

  • Promise<MemoryInfo>

    Chrome 91+

    Promises are supported in Manifest V3 and later, but callbacks are provided for backward compatibility. You cannot use both on the same function call. The promise resolves with the same type that is passed to the callback.

This site uses cookies to deliver and enhance the quality of its services and to analyze traffic. If you agree, cookies are also used to serve advertising and to personalize the content and advertisements that you see. Learn more about our use of cookies.