generic-poky/scripts/contrib
Leonardo Sandoval f0af24eedf buildstats: Outputs 'task recipe elapsed-time' from each buildstats' recipe
Given a 'buildstats' path (created by bitbake when setting
USER_CLASSES ?= "buildstats" on local.conf) and task names, outputs
'<task> <recipe> <elapsed time>' for all recipes. Elapsed times are in
seconds, and task should be given without the 'do_' prefix.

Some useful pipelines

1. Tasks with largest elapsed times

    $ buildstats.sh -b <buildstats> | sort -k3 -n -r | head
    do_compile perl-5.20.0-r1 221.82
    do_configure gettext-native-0.19.4-r0 140.34
    do_compile openssl-native-1.0.2a-r0 107.48
    do_compile openssl-1.0.2a-r0 102.10
    do_configure perl-native-5.20.0-r0 90.70
    do_configure gettext-0.19.4-r0 88.17
    do_compile gcc-cross-i586-4.9.2-r0 83.98
    do_configure m4-native-1.4.17-r0 83.44
    do_compile qemu-native-2.2.0-r1 71.69
    do_compile glibc-2.21-r0 60.88

2. Min, max, sum per task

    $ buildstats.sh | datamash -t' ' -g1 min 3 max 3 sum 3 | sort -k4 -n -r
    do_configure 0.03 140.34 1968.66
    do_compile 0.01 221.82 1664.44
    do_install 0.03 40.31 330.45
    do_populate_sysroot 0.11 34.45 229.23
    do_unpack 0.01 36.1 193.54
    do_patch 0.01 9.2 62.07
    do_fetch 0.01 6.66 32.13
    do_populate_lic 0.09 1.65 30.7

(From OE-Core rev: 29fa8ee01ef3254272bcbdd13a8c7244548639a3)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-09-12 22:48:30 +01:00
..
bb-perf buildstats: Outputs 'task recipe elapsed-time' from each buildstats' recipe 2015-09-12 22:48:30 +01:00
python python3: remove 2to3 symlink from package python3-2to3 2015-08-01 22:24:18 +01:00
bbvars.py bbvars.py: add a script to look for undocumented variables 2011-01-12 00:55:49 -08:00
build-perf-test.sh scripts/contrib/build-perf-test: Update eglibc -> glibc 2014-09-03 11:09:04 +01:00
ddimage ddimage: Support Mac OS 2014-05-28 08:19:30 +01:00
dialog-power-control scripts/contrib/dialog-power-control: add a trivial power prompt script 2014-04-30 21:52:33 +01:00
documentation-audit.sh documentation-audit.sh: Add/fix checks for skipped lines. 2012-12-13 15:18:42 +00:00
graph-tool scripts/contrib: Add graph-tool 2013-12-18 11:21:27 +00:00
list-packageconfig-flags.py scripts: don't skip defaultval 2014-12-03 12:23:56 +00:00
mkefidisk.sh mkefidisk.sh: be more explicit with device error 2015-04-27 15:20:38 +01:00
serdevtry scripts/contrib/serdevtry: add script to handle transient serial terminals 2014-04-30 21:52:32 +01:00
test_build_time.sh scripts/contrib: add build time regression test script 2011-07-20 15:27:31 +01:00
test_build_time_worker.sh scripts/contrib: add build time regression test script 2011-07-20 15:27:31 +01:00
verify-homepage.py scripts/contrib/verify-homepage.py: add a script to verify HOMEPAGE 2014-07-03 17:41:17 +01:00