获取百分比Chrome扩展程序中的CPU使用率

时间:2018-01-15 17:14:50

标签: google-chrome-extension

我目前正试图以百分比形式获取cpu详细信息,就像我想要运行脚本一样,如果cpu小于70%则运行脚本,否则停止脚本..因为脚本在运行时需要太多负载我无法弄清楚现有的获取CPU使用方式chrome.system.cpu.getInfo 简单来说,我想这样做:

if(chrome.system.cpu.usage<70)
{
startScript();
}
else
{
stopScript();
}

但是在Chrome扩展程序中,我感觉有点迷失。

0 个答案:

没有答案
相关问题