whale.system.memory
Description: | The whale.system.memory API. |
---|---|
Availability: | Since Chrome 32. |
Permissions: | "system.memory" |
## Methods
### getInfo
`whale.system.memory.getInfo(function callback)`
Get physical memory information.
| Parameters |
|---|
| function | callback |
The _callback_ parameter should be a function that looks like this:
`function(object info) {...};`
| object | info |
|---|---|
| double | capacity |
|---|---|
The total amount of physical memory capacity, in bytes.
|
| double | availableCapacity |
The amount of available capacity, in bytes.
|
|
|