Commit Graph

5 Commits

Author SHA1 Message Date
f11bc530c3 hostinfo: fix pid parameter 2018-06-17 23:43:41 -07:00
c9c86ff37a hostinfo: up the sample rate
Now that our CPU sampling has a bit less overhead, we can up the sampling
rate a bit without too much affect on performance.
2018-06-16 20:07:38 -07:00
9665cebbdc hostinfo: reuse proc FD and memory when parsing
Re-opening the FD on every poll is pretty expensive. So we should avoid
doing that as well re-use the read buffer (page-aligned, <=1 page) for
the sample data.
2018-06-16 19:50:44 -07:00
851e593ae5 hostinfo: fix cpu/pid parameters for setting cpu counters
We don't need pid here anyway, since we're just passing on counters for the
system itself.
2018-05-17 11:04:23 +01:00
c47822b26e source tree cleanup
The lib/ directory was getting a bit out of hand, so this tries
to organize things a bit so it is easier going forward to locate
the code people want to patch.
2017-09-28 16:23:03 -07:00