summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-03-24 18:28:22 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-25 14:19:57 +0000
commit43d717df16312a8f0333aff6b8b037b4b9d51bf3 (patch)
tree6edcdf6d2c39c040f1f3da596a6f86536de59630 /meta/classes
parentec734f0cccba2659334498235851c93ce8abef2b (diff)
downloadopenembedded-core-43d717df16312a8f0333aff6b8b037b4b9d51bf3.tar.gz
openembedded-core-43d717df16312a8f0333aff6b8b037b4b9d51bf3.tar.bz2
openembedded-core-43d717df16312a8f0333aff6b8b037b4b9d51bf3.zip
toaster.bbclass: update buildstats event data
We add the PN to the buildstats event data in order to proper select database task when multiple similar tasks are executed for the same recipe file. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/toaster.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass
index 705eb26b30..ce40afa84a 100644
--- a/meta/classes/toaster.bbclass
+++ b/meta/classes/toaster.bbclass
@@ -179,7 +179,7 @@ python toaster_collect_task_stats() {
bn = get_bn(e)
bsdir = os.path.join(e.data.getVar('BUILDSTATS_BASE', True), bn)
taskdir = os.path.join(bsdir, e.data.expand("${PF}"))
- fout.write("%s:%s:%s\n" % (e.taskfile, e.taskname, os.path.join(taskdir, e.task)))
+ fout.write("%s:%s:%s:%s\n" % (e.taskfile, e.taskname, os.path.join(taskdir, e.task), e.data.expand("${PN}")))
bb.utils.unlockfile(lock)
@@ -222,8 +222,8 @@ python toaster_collect_task_stats() {
events = []
with open(os.path.join(e.data.getVar('BUILDSTATS_BASE', True), "toasterstatlist"), "r") as fin:
for line in fin:
- (taskfile, taskname, filename) = line.strip().split(":")
- events.append((taskfile, taskname, _read_stats(filename)))
+ (taskfile, taskname, filename, recipename) = line.strip().split(":")
+ events.append((taskfile, taskname, _read_stats(filename), recipename))
bb.event.fire(bb.event.MetadataEvent("BuildStatsList", events), e.data)
os.unlink(os.path.join(e.data.getVar('BUILDSTATS_BASE', True), "toasterstatlist"))
}