I want to get my system information(like CPU usage, available memory, free disk space, available bandwidth etc.)
Is there any open source c++(preferred) library to get this information?
I can do it using multiple system() commands in C++ but I want to use any available code that is used before.
Please let me know if any more information is required.
Thanks in advance.
/proc/meminfo
to get RAM usage, and for cpu usage, you can use that script shown in answer (don't forget that you can execute script in c++) – damadam Nov 05 '19 at 13:31