欢迎 What's new in Chrome extensions Get help with Chrome extensions API reference Samples
欢迎 What's new in Chrome extensions Get help with 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.

We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.