]> code.ossystems Code Review - openembedded-core.git/commit
oeqa.buildperf: method for measuring system resource usage
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 11 May 2016 10:39:22 +0000 (13:39 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Jul 2016 15:08:49 +0000 (16:08 +0100)
commitced156bfea4a6649d201f41275641a633f218322
treea1774a910df078306e4dda3bf0c8b9928e43257e
parent35cd7363759a286e80ddca0d028db3d2bf524b17
oeqa.buildperf: method for measuring system resource usage

Extend BuildPerfTest class with a new method for measuring the system
resource usage of a shell command to BuildPerfTest class.  For now,
easurement of the elapsed time is done with the Gnu time utility,
similarly to the build-perf-test.sh shell script. And, it currently only
records the elapsed (wall clock).

The measured values (currently, only the elapsed time) is actually a
dictionary, making it possible to extend it with additional resource
values, e.g. cpu time or i/o usage, in the future.  In addition to the
actual values of the measurement each record contains a 'name' and
'legend' where name is supposed to function as a common key or id over
test runs, making comparison and trending easier, for example. Legend is
supposed to be a short human readable description.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/buildperf/base.py