]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bitbake: toaster: rework task buildstats storage and display
authorElliot Smith <elliot.smith@intel.com>
Tue, 8 Mar 2016 11:32:12 +0000 (11:32 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 9 Mar 2016 22:45:16 +0000 (22:45 +0000)
commit0dcab0258e6e638db8b78fa3c7c7e485280712d4
tree1d5fe7bafd6c45b8f935f0f516cc4d0309469eac
parentcc74a8ae26a7728828a3442ba441b1676bc2c8a1
bitbake: toaster: rework task buildstats storage and display

The data available from buildstats is now more fine grained than
previously, so take advantage of that to enrich the data we save
against tasks:

* Store the CPU usage for user and system separately, and display
them separately.
* Disk IO is now measured in bytes, not ms. Also store the
read/write bytes separately.
* Store started and ended times, as well as elapsed_time. This
will enable future features such as showing which tasks were
running at a particular point in the build.

There was also a problem with how we were looking up the Task
object, which meant that the buildstats were being added to
new tasks which weren't correctly associated with the build. Fix
how we look up the Task (only looking for tasks which match the
build, and the task and recipe names in the build stats data) so
the build stats are associated with the correct task.

[YOCTO #8842]

(Bitbake rev: efa6f915566b979bdbad233ae195b413cef1b8da)

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/buildinfohelper.py
bitbake/lib/toaster/orm/migrations/0005_task_field_separation.py [new file with mode: 0644]
bitbake/lib/toaster/orm/models.py
bitbake/lib/toaster/toastergui/templates/basebuildpage.html
bitbake/lib/toaster/toastergui/templates/task.html
bitbake/lib/toaster/toastergui/templates/tasks.html
bitbake/lib/toaster/toastergui/urls.py
bitbake/lib/toaster/toastergui/views.py