Date: Mon, 4 Aug 2014 19:09:23 +0300 From: Stefan Parvu <sparvu@systemdatarecorder.org> To: freebsd-hackers@freebsd.org Subject: cpu utilization break down via sysctl Message-ID: <20140804190923.95fec6a00d175ffee89c4af5@systemdatarecorder.org>
next in thread | raw e-mail | index | archive | help
Hi, Im trying to understand if there is a simple way, without writing C code, to consume sysctl interface via BSD::Sysctl or using sysctl(8) and output user, system and idle across all CPUs from a running system ? Im trying to port sysrec [1] to FreeBSD and it seems a bit harder to find the correct approach. Pointers, comments ? [1] - http://www.systemdatarecorder.org/recording/sysrec.html Many thanks, -- Stefan Parvu <sparvu@systemdatarecorder.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140804190923.95fec6a00d175ffee89c4af5>