Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How is Google Meet able to show CPU usage?

I noticed this today in my Chrome.

Google Meet CPU Usage chart

Google Meet is showing a chart of CPU usage in their "Troubleshooting" panel. I'm wondering if there's an existing API for this or is it a clever trick I'm not aware of.

like image 660
Paweł Badeński Avatar asked Oct 20 '20 10:10

Paweł Badeński


People also ask

How does Google Meet get CPU usage?

Video meeting services require a lot of bandwidth to work properly. Additionally, they also use a lot of CPU and GPU power, which is valid for Google Meet. If other programs are running in the background, Google Meet may have difficulty accessing the necessary system resources and bandwidth.

How can I reduce CPU usage in meet?

Google Meet on mobile: How to limit data usage On Android, tap the three-horizontal line menu (upper-left) | Settings then adjust the slider next to Limit Data Usage (Figure A). Select Limit Data Usage in Google Meet on Android.

How much RAM does Google Meet use?

To use Google Meet, the minimum system requirements are: Dual Core processor. 2GB memory.

Why is my laptop so slow when using Google Meet?

If the display and GPU drivers are outdated on your computer, you might face heavy lag during Google Meet presentations. You need to update display and GPU drivers from the Device Manager menu.


Video Answer


2 Answers

I was curious about this as well when I saw the CPU Usage graph on the Troubleshooting page on the Google Meet's page. So googled a lot and I couldn't find any proper answer as to how it is being achieved apart from this link: https://developer.chrome.com/extensions/system_cpu#method-getInfo.

So, I went through the minified source code of the Google Meet's site and it turns out Google Meet is using this but not on their webpage directly, because it is for chrome extensions only, but through the Google Hangouts Extension which is present in Chrome, Brave and the new Microsoft Edge (Chromium-based).

enter image description here

The chrome extension is calling the chrome.system.cpu API to get the information about the processor, core count, temperatures, etc., and these details are being passed to the Google Meets page via window.postMessage API and Message Passing between Chrome Extension and a Webpage.

This is a neat little way to achieve this if you are the creator of the browser :P.

like image 147
Vibhor Avatar answered Oct 23 '22 06:10

Vibhor


Most probably, they are using Chrome specific API since this will not work on other browsers. The closest thing that I've found is https://developer.chrome.com/extensions/system_cpu#method-getInfo

Below is a screenshot from Firefox stating that this will work only on Chrome.

Snapshot from Firefox

like image 21
amd Avatar answered Oct 23 '22 04:10

amd