diff options
author | Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> | 2016-11-15 15:19:51 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-11-23 11:10:14 +0000 |
commit | eab4aaa07483601c2964b107b8eb92abfdbfd43f (patch) | |
tree | 5f45d9986ff4a888c2b16bf649a5475c2e9634c2 | |
parent | 6e182aaa760c3be689e694e06d9ed0f4b66b1497 (diff) | |
download | poky-eab4aaa07483601c2964b107b8eb92abfdbfd43f.tar.gz |
buildstats: Place 'Elapsed Time' stat into a single line
All lines except one (the one containing the 'Elapsed Time') follows the format
'stat: value'. Fix that so post parsing the stats is simpler.
(From OE-Core rev: 47dfd172754440a7ab28eb1b59d9bd484cdad22a)
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 599a219984..57ecc8fee8 100644 --- a/meta/classes/buildstats.bbclass +++ b/meta/classes/buildstats.bbclass | |||
@@ -80,8 +80,8 @@ def write_task_data(status, logfile, e, d): | |||
80 | with open(os.path.join(logfile), "a") as f: | 80 | with open(os.path.join(logfile), "a") as f: |
81 | elapsedtime = get_timedata("__timedata_task", d, e.time) | 81 | elapsedtime = get_timedata("__timedata_task", d, e.time) |
82 | if elapsedtime: | 82 | if elapsedtime: |
83 | f.write(d.expand("${PF}: %s: Elapsed time: %0.2f seconds \n" % | 83 | f.write(d.expand("${PF}: %s\n" % e.task)) |
84 | (e.task, elapsedtime))) | 84 | f.write(d.expand("Elapsed time: %0.2f seconds\n" % elapsedtime)) |
85 | cpu, iostats, resources, childres = get_process_cputime(os.getpid()) | 85 | cpu, iostats, resources, childres = get_process_cputime(os.getpid()) |
86 | if cpu: | 86 | if cpu: |
87 | f.write("utime: %s\n" % cpu['utime']) | 87 | f.write("utime: %s\n" % cpu['utime']) |