5

Is it possible to know the data/bandwidth usage of each tab opened ?. Is there any API for this ?.

I want to make a chrome extension based on this. Any pointers would be helpful.

What I exactly want to do is: Show a small counter beside the tab name/page title. The counter should update itself every 5-10 seconds. It should show the amount of data/bandwidth consumed by the tab.

chrome://net-internals/#export.

This shows the overall bandwidth usage once the event starts ? Can I get this tab wise ?. Any API for this ?.

Is this possible in Chrome ?. I found this in Firefox as an add-on(tab-data).
Link: https://addons.mozilla.org/en-us/firefox/addon/tab-data/

rnikhil275
  • 376
  • 2
  • 12

1 Answers1

1

Chrome API says that you can use chrome.processes.getProcessIdForTab(integer tabId, function callback) to get the process id of the tab, and then getProcessInfo − chrome.processes.getProcessInfo(integer or array of integer processIds, boolean includeMemory, function callback) to get the memory usage and other stuff. Look at the link for more detailed info

Here there's a question on this topic: Programmatically get memory usage in Chrome

Community
  • 1
  • 1
Phate01
  • 2,499
  • 2
  • 30
  • 55
  • 4
    Big Red Warning regarding this API: **"This API is experimental. It is only available to Chrome users on the dev channel."** – Xan Mar 25 '15 at 14:58
  • Please have a look at the edited question. Sorry for misleading you by saying memory usage – rnikhil275 Mar 26 '15 at 13:48