mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 03:32:12 +02:00
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. (From OE-Core rev: 43d717df16312a8f0333aff6b8b037b4b9d51bf3) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ae79fa3412
commit
55f6a3508d
@@ -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"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user