mirror of
https://git.yoctoproject.org/poky
synced 2026-06-10 04:00:28 +00:00
oeqa.buildperf: add test Test3
Re-implement "test3" from build-perf-test.sh which measures bitbake parsing time. (From OE-Core rev: 388c7160b90247df9c78d8803083821402c13af5) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
0b2fae81fd
commit
fe24b5a597
@@ -83,3 +83,23 @@ class Test2(BuildPerfTest):
|
||||
self.sync()
|
||||
cmd = ['bitbake', self.build_target, '-c', 'rootfs']
|
||||
self.measure_cmd_resources(cmd, 'do_rootfs', 'bitbake do_rootfs')
|
||||
|
||||
|
||||
@perf_test_case
|
||||
class Test3(BuildPerfTest):
|
||||
name = "test3"
|
||||
description = "Parsing time metrics (bitbake -p)"
|
||||
|
||||
def _run(self):
|
||||
# Drop all caches and parse
|
||||
self.rm_cache()
|
||||
self.force_rm(os.path.join(self.bb_vars['TMPDIR'], 'cache'))
|
||||
self.measure_cmd_resources(['bitbake', '-p'], 'parse_1',
|
||||
'bitbake -p (no caches)')
|
||||
# Drop tmp/cache
|
||||
self.force_rm(os.path.join(self.bb_vars['TMPDIR'], 'cache'))
|
||||
self.measure_cmd_resources(['bitbake', '-p'], 'parse_2',
|
||||
'bitbake -p (no tmp/cache)')
|
||||
# Parse with fully cached data
|
||||
self.measure_cmd_resources(['bitbake', '-p'], 'parse_3',
|
||||
'bitbake -p (cached)')
|
||||
|
||||
Reference in New Issue
Block a user