Albinoswordfish
Albinoswordfish

Reputation: 1957

Chrome extension: Memory data

I was wondering with Google Chrome's extension API, is it possible to extract memory usage data for each tab and use it in a popup? I know there is this extension https://chrome.google.com/extensions/detail/mmbijkbkjlefoimjopcojbkpnmljahlh but all it does is simply open the about:memory tab. I was thinking maybe there was a way to "parse" the about:memory tab and use it for my extension. Or am I delusional and this is not possible?

Upvotes: 2

Views: 1057

Answers (2)

caseq
caseq

Reputation: 1959

The chrome.processes API can be used to obtain the same data that the Task Manager uses: https://developer.chrome.com/extensions/processes

Upvotes: 1

serg
serg

Reputation: 111265

There is no such API and chrome:// scheme is forbidden for extensions so you can't parse that page either...

  • XMLHttpRequest calls to chrome:// are not allowed
  • Content scripts are not injected under chrome://

Upvotes: 1

Related Questions