summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/buildstats-summary.bbclass4
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/classes/buildstats-summary.bbclass b/meta/classes/buildstats-summary.bbclass
index c8fbb2f1a1..05ead9fdbf 100644
--- a/meta/classes/buildstats-summary.bbclass
+++ b/meta/classes/buildstats-summary.bbclass
@@ -1,8 +1,5 @@
1# Summarize sstate usage at the end of the build 1# Summarize sstate usage at the end of the build
2python buildstats_summary () { 2python buildstats_summary () {
3 if not isinstance(e, bb.event.BuildCompleted):
4 return
5
6 import collections 3 import collections
7 import os.path 4 import os.path
8 5
@@ -37,3 +34,4 @@ python buildstats_summary () {
37 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))) 34 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)))
38} 35}
39addhandler buildstats_summary 36addhandler buildstats_summary
37buildstats_summary[eventmask] = "bb.event.BuildCompleted"