Howto read system informations in C++ on windows and linux?
- by f4
I need to read system information like cpu/ram/disks usage in C++. Maybe swap, network and process too but that's less important.
It has probably been done thousand of times before so I first tried to search for a library. Someone here suggested SIGAR, which seems to fit my needs but is GPL and it is for inclusion in a proprietary product. So it's not an option here.
I feel like it's something not that easy to implement, as it'll need testing on several platforms. So a library would be welcome.
If you don't know of any library, could you point me in the right direction for both platforms?