3 ms·
On Linux, there's a bit of the info you're looking for under /proc/self/*. (Not a great answer; the info under /proc/ isn't exactly well structured, but doesn'
by ndesaulniers 7y ago
On Linux, there's a bit of the info you're looking for under /proc/self/*. (Not a great answer; the info under /proc/ isn't exactly well structured, but doesn't change super often).
- nh2 7y ago/proc doesn't really tell you much about userspace concerns such as "how much memory has the malloc implementation handed out to the program. It describes only the kernel-userspace parts of memory usage. For example, malloc fragmentation is not inspectable in it. (If you enable the mallopt() setting that turns each malloc() into a separate mmap(), then it tells you a lot, but that is not a default setting.)