diff options
Diffstat (limited to 'meta/classes/buildstats.bbclass')
| -rw-r--r-- | meta/classes/buildstats.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass index 0de605200a..132ecaa98b 100644 --- a/meta/classes/buildstats.bbclass +++ b/meta/classes/buildstats.bbclass | |||
| @@ -285,7 +285,8 @@ python runqueue_stats () { | |||
| 285 | if system_stats: | 285 | if system_stats: |
| 286 | # Ensure that we sample at important events. | 286 | # Ensure that we sample at important events. |
| 287 | done = isinstance(e, bb.event.BuildCompleted) | 287 | done = isinstance(e, bb.event.BuildCompleted) |
| 288 | system_stats.sample(e, force=done) | 288 | if system_stats.sample(e, force=done): |
| 289 | d.setVar('_buildstats_system_stats', system_stats) | ||
| 289 | if done: | 290 | if done: |
| 290 | system_stats.close() | 291 | system_stats.close() |
| 291 | d.delVar('_buildstats_system_stats') | 292 | d.delVar('_buildstats_system_stats') |
