jeudi 17 mai 2018

Get system memory and CPU usage from within C++11 code

How can I get the total percentage or volume of memory usage and CPU consumption from within C++11 code on ubuntu (or any other linux-based system)?

The usage I want to get is for the whole system, not just for current thread or process.

Aucun commentaire:

Enregistrer un commentaire