]> code.ossystems Code Review - openembedded-core.git/commit
buildstats: add system state sampling
authorPatrick Ohly <patrick.ohly@intel.com>
Wed, 30 Nov 2016 09:50:01 +0000 (10:50 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 7 Dec 2016 10:36:10 +0000 (10:36 +0000)
commit6f4e8180b5b4857eaf6caf410fd3a4a41ed85930
tree44c3010a817fe49347d03b9f7a84c74a8c423e3a
parent5cc5cdc788308a79f8f0706e6d794c602ef427ed
buildstats: add system state sampling

/proc/[diskstats|meminfo|stat] get sampled and written to the same
proc_<filename>.log files as during normal bootchat logging. This will
allow rendering the CPU, disk and memory usage charts.

Right now sampling happens once a second, triggered by the heartbeat
event.That produces quite a bit of data for long builds, which will be
addressed in a separate commit by storing the data in a more compact
form.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/buildstats.bbclass
meta/lib/buildstats.py [new file with mode: 0644]