Welcome What's new in Chrome extensions Getting started 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>

    Pending

    This only returns a Promise when the callback parameter is not specified, and with MV3+. The type inside the Promise is the same as the 1st argument to callback.