]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
build-perf-bisect: add rootfstime method marquiz/scripts
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 17 Jan 2017 12:51:14 +0000 (14:51 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 17 Jan 2017 12:51:14 +0000 (14:51 +0200)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
build-perf-bisect.sh

index 52c00650a6a2a3cbfaf107cb85b750fb66915ae4..6fdd05beb81240a7ef71d41169c74101752be5e5 100755 (executable)
@@ -264,6 +264,22 @@ cleanup_buildtime2 () {
     run_cmd rm -rf tmp*
 }
 
+rootfstime () {
+    # Pre-build to populate sstate cache
+    _time=`time_cmd bitbake $1` || exit 125
+    run_cmd rm -rf tmp*
+
+    do_sync
+
+    results+=(`time_cmd bitbake -c rootfs $1`) || exit 125
+
+    save_buildstats
+}
+
+cleanup_rootfstime () {
+    run_cmd rm -rf tmp*
+}
+
 tmpsize () {
     log "cleaning up build directory"
     run_cmd rm -rf bitbake.lock conf/sanity_info cache tmp sstate-cache
@@ -328,6 +344,10 @@ case "$test_method" in
         builddir="$workdir/build"
         cleanup_func=cleanup_buildtime2
         ;;
+    rootfstime)
+        builddir="$workdir/build"
+        cleanup_func=cleanup_rootfstime
+        ;;
     tmpsize)
         quantity="SIZE"
         ;;