diff options
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 () { | |||
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 | ||
213 | addhandler runqueue_stats | 213 | addhandler runqueue_stats |
214 | runqueue_stats[eventmask] = "bb.runqueue.sceneQueueTaskStarted bb.runqueue.runQueueTaskStarted bb.event.HeartbeatEvent bb.event.BuildCompleted" | 214 | runqueue_stats[eventmask] = "bb.runqueue.sceneQueueTaskStarted bb.runqueue.runQueueTaskStarted bb.event.HeartbeatEvent bb.event.BuildCompleted bb.event.MonitorDiskEvent" |