summaryrefslogtreecommitdiffstats
path: root/meta/classes/buildstats.bbclass
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2016-11-30 10:50:06 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-07 10:37:59 +0000
commit25a5536a6e9ca648f881e1288a281f4f679e2bec (patch)
treec81f7afdf766fc9808c4feee772d5c60c637461e /meta/classes/buildstats.bbclass
parent1416bb3244696d554431cf5549c59575e9a2c045 (diff)
downloadpoky-25a5536a6e9ca648f881e1288a281f4f679e2bec.tar.gz
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. (From OE-Core rev: 21a5b569370f47cc02291e1d8b76fe43faa04ea6) Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/buildstats.bbclass')
-rw-r--r--meta/classes/buildstats.bbclass4
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 () {
204 if system_stats: 204 if system_stats:
205 # Ensure that we sample at important events. 205 # Ensure that we sample at important events.
206 done = isinstance(e, bb.event.BuildCompleted) 206 done = isinstance(e, bb.event.BuildCompleted)
207 system_stats.sample(force=done) 207 system_stats.sample(e, force=done)
208 if done: 208 if done:
209 system_stats.close() 209 system_stats.close()
210 d.delVar('_buildstats_system_stats') 210 d.delVar('_buildstats_system_stats')
211} 211}
212 212
213addhandler runqueue_stats 213addhandler runqueue_stats
214runqueue_stats[eventmask] = "bb.runqueue.sceneQueueTaskStarted bb.runqueue.runQueueTaskStarted bb.event.HeartbeatEvent bb.event.BuildCompleted" 214runqueue_stats[eventmask] = "bb.runqueue.sceneQueueTaskStarted bb.runqueue.runQueueTaskStarted bb.event.HeartbeatEvent bb.event.BuildCompleted bb.event.MonitorDiskEvent"