Ask HN: Best to collect system metrics (Linux/C)
I'm writing a distributed system on Linux using the C language. I'd like to collect the cache misses, page faults, and so on that are indicative of bad CPU/memory/machine sympathy by Unix pid. What's the best way to do this?