2 ms·
On Linux at least, the relevant API for reading this sort of data is... open up specific files in /proc and parse the often poorly-documented textual output to
by jcranmer 5y ago
On Linux at least, the relevant API for reading this sort of data is... open up specific files in /proc and parse the often poorly-documented textual output to get the information you need. Which happens to be the kind of thing that C/C++ don't do very well at all, at least in comparison to languages like Python. Although I think Linux is the outlier in this regard.
- freedomben 5y agowell, you're not wrong, but there are lots of libraries/wrappers around that interface that work pretty well