如何检查我的 ionic 3 应用程序中的可用 RAM?

How can I check available RAM in my ionic 3 app?

我正在使用 extended-device-information 插件在 ionic 3 应用程序中获取我的移动内存。但我想在我的设备中获得可用内存 (RAM)。
如何计算 ionic 3 中的可用 RAM?

chrome.system.memory 插件

It doesn't appear the extended-device-information plug-in can calculate the "available memory". You would likely need to use the chrome.system.memory Plugin or similar to accomplish that.

https://developer.chrome.com/apps/system_memory

扩展设备信息插件

来自文档(仅显示总内存容量):

import { ExtendedDeviceInformation } from '@ionic-native/extended-device-information/ngx';

constructor(private extendedDeviceInformation: ExtendedDeviceInformation) { }

...

console.log('The Memory is: ' + this.extendedDeviceInformation.memory);


https://ionicframework.com/docs/native/extended-device-information