diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2016-11-30 10:50:06 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-07 10:36:10 +0000 |
commit | 21a5b569370f47cc02291e1d8b76fe43faa04ea6 (patch) | |
tree | c2d8730466fb7912235dcbeaf146d6949b00cd61 /meta/classes/buildstats.bbclass | |
parent | 1658fd5e9ca1ba793cae604c2a395d54e3ec9056 (diff) | |
download | openembedded-core-21a5b569370f47cc02291e1d8b76fe43faa04ea6.tar.gz openembedded-core-21a5b569370f47cc02291e1d8b76fe43faa04ea6.tar.bz2 openembedded-core-21a5b569370f47cc02291e1d8b76fe43faa04ea6.zip |
buildstats: record disk space usage
Hooks into the new monitordisk.py event and records the used space for
each volume. That is probably the only relevant value when it comes to
visualizing the build and recording more would only increase disk
usage.
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/buildstats.bbclass')
-rw-r--r-- | meta/classes/buildstats.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass index 9c0c37dcdd..c6b77e6a2a 100644 --- a/meta/classes/buildstats.bbclass +++ b/meta/classes/buildstats.bbclass @@ -204,11 +204,11 @@ python runqueue_stats () { if system_stats: # Ensure that we sample at important events. done = isinstance(e, bb.event.BuildCompleted) - system_stats.sample(force=done) + system_stats.sample(e, force=done) if done: system_stats.close() d.delVar('_buildstats_system_stats') } addhandler runqueue_stats -runqueue_stats[eventmask] = "bb.runqueue.sceneQueueTaskStarted bb.runqueue.runQueueTaskStarted bb.event.HeartbeatEvent bb.event.BuildCompleted" +runqueue_stats[eventmask] = "bb.runqueue.sceneQueueTaskStarted bb.runqueue.runQueueTaskStarted bb.event.HeartbeatEvent bb.event.BuildCompleted bb.event.MonitorDiskEvent" |