Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get GPU info within Electron app

I'd like to know how can I retrieve GPU info within Electron app.

I would like to get the same info as when I type in the browser chrome://gpu/ and log this information for diagnostics.

Thanks for the help!

like image 775
Bill Lumbert Avatar asked Dec 19 '25 08:12

Bill Lumbert


1 Answers

https://www.electronjs.org/docs/all#appgetgpuinfoinfotype

const electron = require('electron');
electron.app.getGPUInfo('complete').then(function(data)
{
    console.log(data);
});
like image 171
DAG Avatar answered Dec 21 '25 23:12

DAG



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!