答案 0 :(得分:3)
只有一种方法可以获得CPU&内存使用量仅适用于Chrome Dev版本:
https://developer.chrome.com/extensions/examples/api/processes/process_monitor.zip
答案 1 :(得分:2)
这是可能的。您需要先在您的 manifest.json
中请求权限:“处理”,例如:
{
"name": "My extension...",
...
"permissions": [ "processes" ],
...
}
如果您在开发频道上,您将有 chrome.processes 可用。在其他频道上,扩展将被拒绝并显示错误:
<块引用>'processes' 需要开发频道或更新版本,但这是稳定频道。
答案 2 :(得分:-3)
I have actually not tried this ever but still I think that this might help you. I would suggest you to write a web page scraper pointing to this URL:
chrome://system/
In case if this URL changes (chrome updates and all), you can use the master URL chrome://chrome-urls/
that lists all the chrome diagnostic pages. Hope that this will help.