summaryrefslogtreecommitdiffstats
path: root/scripts/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/contrib')
-rwxr-xr-xscripts/contrib/build-perf-test.sh17
1 files changed, 10 insertions, 7 deletions
diff --git a/scripts/contrib/build-perf-test.sh b/scripts/contrib/build-perf-test.sh
index cdd7885dca..105b54b35c 100755
--- a/scripts/contrib/build-perf-test.sh
+++ b/scripts/contrib/build-perf-test.sh
@@ -128,7 +128,7 @@ rev=$(git rev-parse --short HEAD) || exit 1
128OUTDIR="$clonedir/build-perf-test/results-$rev-`date "+%Y%m%d%H%M%S"`" 128OUTDIR="$clonedir/build-perf-test/results-$rev-`date "+%Y%m%d%H%M%S"`"
129BUILDDIR="$OUTDIR/build" 129BUILDDIR="$OUTDIR/build"
130resultsfile="$OUTDIR/results.log" 130resultsfile="$OUTDIR/results.log"
131bboutput="$OUTDIR/bitbake.log" 131cmdoutput="$OUTDIR/commands.log"
132myoutput="$OUTDIR/output.log" 132myoutput="$OUTDIR/output.log"
133globalres="$clonedir/build-perf-test/globalres.log" 133globalres="$clonedir/build-perf-test/globalres.log"
134 134
@@ -180,14 +180,13 @@ time_count=0
180declare -a SIZES 180declare -a SIZES
181size_count=0 181size_count=0
182 182
183bbtime () { 183time_cmd () {
184 local arg="$@" 184 log " Timing: $*"
185 log " Timing: bitbake ${arg}"
186 185
187 if [ $verbose -eq 0 ]; then 186 if [ $verbose -eq 0 ]; then
188 /usr/bin/time -v -o $resultsfile bitbake ${arg} >> $bboutput 187 /usr/bin/time -v -o $resultsfile "$@" >> $cmdoutput
189 else 188 else
190 /usr/bin/time -v -o $resultsfile bitbake ${arg} 189 /usr/bin/time -v -o $resultsfile "$@"
191 fi 190 fi
192 ret=$? 191 ret=$?
193 if [ $ret -eq 0 ]; then 192 if [ $ret -eq 0 ]; then
@@ -206,12 +205,16 @@ bbtime () {
206 log "More stats can be found in ${resultsfile}.${i}" 205 log "More stats can be found in ${resultsfile}.${i}"
207} 206}
208 207
208bbtime () {
209 time_cmd bitbake "$@"
210}
211
209#we don't time bitbake here 212#we don't time bitbake here
210bbnotime () { 213bbnotime () {
211 local arg="$@" 214 local arg="$@"
212 log " Running: bitbake ${arg}" 215 log " Running: bitbake ${arg}"
213 if [ $verbose -eq 0 ]; then 216 if [ $verbose -eq 0 ]; then
214 bitbake ${arg} >> $bboutput 217 bitbake ${arg} >> $cmdoutput
215 else 218 else
216 bitbake ${arg} 219 bitbake ${arg}
217 fi 220 fi