Hacker News new | past | comments | ask | show | jobs | submit login

If you poll with high frequency you'll be causing lots of additional wake-ups which will badly skew what you're measuring.



Ideally you'd do an accounting update on task switch, along with all the other housekeeping. Then you don't need to do any polling. There's a "process accounting" infrastructure which perhaps could be adapted for this.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: