bitbake: toaster: measure task duration with server-side timestamps
authorAlexandru DAMIAN <alexandru.damian@intel.com>
Mon, 17 Mar 2014 15:28:46 +0000 (15:28 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Mar 2014 14:47:52 +0000 (14:47 +0000)
commit89241711299a4d6e1c24bacb246d2584885b213f
treedd3788ad739e01be6cdca5bcf7c60d7c8b15d6a9
parent1076c3c62100b3e650c3468de79fc091e73293d5
bitbake: toaster: measure task duration with server-side timestamps

The buildstats and toaster use separate time markers to measure the
duration of task execution. This causes a mismatch in the time
measured by buildstats class and the time measured in toaster.

The solution implemented here is to timestamp the creation of
every TaskBase event on the bitbake server side and calculate
the execution duration as the difference between creation time
of TaskSucceeded and TaskStarted events.

Based on an original patch by Marius Avram.

[YOCTO #5485]

(Bitbake rev: 7a08282c074c264f414cf7665dc873f51245072c)

Signed-off-by: Marius Avram <marius.avram@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/build.py
bitbake/lib/bb/ui/buildinfohelper.py