diff options
Diffstat (limited to 'meta/classes/buildstats.bbclass')
-rw-r--r-- | meta/classes/buildstats.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass index 9061b11501..0a29cfd5e1 100644 --- a/meta/classes/buildstats.bbclass +++ b/meta/classes/buildstats.bbclass | |||
@@ -133,12 +133,13 @@ python run_buildstats () { | |||
133 | timedata = get_timedata("__timedata_task", e.data) | 133 | timedata = get_timedata("__timedata_task", e.data) |
134 | if not timedata: | 134 | if not timedata: |
135 | return | 135 | return |
136 | time, cpu = timedata | 136 | elapsedtime, cpu = timedata |
137 | bsdir = os.path.join(bb.data.getVar('BUILDSTATS_BASE', e.data, True), bn) | 137 | bsdir = os.path.join(bb.data.getVar('BUILDSTATS_BASE', e.data, True), bn) |
138 | taskdir = os.path.join(bsdir, bb.data.expand("${PF}", e.data)) | 138 | taskdir = os.path.join(bsdir, bb.data.expand("${PF}", e.data)) |
139 | file = open(os.path.join(taskdir, e.task), "a") | 139 | file = open(os.path.join(taskdir, e.task), "a") |
140 | file.write(bb.data.expand("${PF}: %s: Elapsed time: %0.2f seconds \n" % | 140 | file.write(bb.data.expand("${PF}: %s: Elapsed time: %0.2f seconds \n" % |
141 | (e.task, time), e.data)) | 141 | (e.task, elapsedtime), e.data)) |
142 | file.write("Ended: %0.2f \n" % time.time()) | ||
142 | if cpu: | 143 | if cpu: |
143 | file.write("CPU usage: %0.1f%% \n" % cpu) | 144 | file.write("CPU usage: %0.1f%% \n" % cpu) |
144 | 145 | ||