summaryrefslogtreecommitdiffstats
path: root/meta/classes/buildstats-summary.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/buildstats-summary.bbclass')
-rw-r--r--meta/classes/buildstats-summary.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/buildstats-summary.bbclass b/meta/classes/buildstats-summary.bbclass
index d73350b940..b86abcc3f1 100644
--- a/meta/classes/buildstats-summary.bbclass
+++ b/meta/classes/buildstats-summary.bbclass
@@ -30,7 +30,11 @@ python buildstats_summary () {
30 header_printed = True 30 header_printed = True
31 bb.note("Build completion summary:") 31 bb.note("Build completion summary:")
32 32
33 bb.note(" {0}: {1}% sstate reuse ({2} setscene, {3} scratch)".format(t, 100*len(sstate)/(len(sstate)+len(no_sstate)), len(sstate), len(no_sstate))) 33 sstate_count = len(sstate)
34 no_sstate_count = len(no_sstate)
35 total_count = sstate_count + no_sstate_count
36 bb.note(" {0}: {1:.1f}% sstate reuse({2} setscene, {3} scratch)".format(
37 t, round(100 * sstate_count / total_count, 1), sstate_count, no_sstate_count))
34} 38}
35addhandler buildstats_summary 39addhandler buildstats_summary
36buildstats_summary[eventmask] = "bb.event.BuildCompleted" 40buildstats_summary[eventmask] = "bb.event.BuildCompleted"