aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-09-07 14:28:38 +0300
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-10-06 08:51:47 +0300
commit3aa02692055f869a477037cab15567f4729d3fde (patch)
tree30de6ed284e9ea0ea48be7614b76a75bef72fde6
parentc1aef5f42968504c225af76353a6352d44e9f980 (diff)
downloadopenembedded-core-contrib-3aa02692055f869a477037cab15567f4729d3fde.tar.gz
openembedded-core-contrib-3aa02692055f869a477037cab15567f4729d3fde.tar.bz2
openembedded-core-contrib-3aa02692055f869a477037cab15567f4729d3fde.zip
build-perf-bisect: save buildstats when doing buildtime
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rwxr-xr-xbuild-perf-bisect.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/build-perf-bisect.sh b/build-perf-bisect.sh
index 99adb4280b..bd8defe297 100755
--- a/build-perf-bisect.sh
+++ b/build-perf-bisect.sh
@@ -71,6 +71,7 @@ timestamp=`date "+%Y%m%d_%H%M%S"`
git_rev=`git rev-parse --short HEAD`
git_rev_cnt=`git rev-list --count HEAD`
log_file="$workdir/bisect-${git_rev_cnt}_g${git_rev}-${timestamp}.log"
+buildstats_dir="$workdir/buildstats-${git_rev_cnt}_g${git_rev}-${timestamp}"
#
@@ -181,6 +182,12 @@ do_sync () {
sleep 2
}
+save_buildstats () {
+ log "Saving buildstats"
+ mkdir -p "$buildstats_dir"
+ mv tmp*/buildstats/* "$buildstats_dir"
+}
+
cleanup () {
$cleanup_func "$@"
}
@@ -202,6 +209,8 @@ buildtime () {
do_sync
results+=(`time_cmd bitbake $1`) || exit 125
+
+ save_buildstats
}
tmpsize () {