from Hacker News

Ask HN: Best to collect system metrics (Linux/C)

by 7532yahoogmail on 5/5/20, 11:51 PM with 0 comments

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?