Description
The chrome.system.memory API.
Permissions
system.memoryTypes
MemoryInfo
Properties
- availableCapacity
number
The amount of available capacity, in bytes.
- capacity
number
The total amount of physical memory capacity, in bytes.
Methods
getInfo()
Promise
chrome.system.memory.getInfo(
callback?: function,
): Promise<MemoryInfo>
Get physical memory information.
Parameters
- callback
function optional
The
callbackparameter looks like:(info: MemoryInfo) => void
- info
-
Returns
-
Promise<MemoryInfo>
Chrome 91+Promises are only supported for Manifest V3 and later, other platforms need to use callbacks.