config/multithread: dump stats after a build

This commit is contained in:
MilhouseVH 2019-12-25 20:09:01 +00:00
parent 6774e7731c
commit e48447f305
2 changed files with 3 additions and 0 deletions

View File

@ -156,6 +156,8 @@ start_multithread_build() {
--plain --no-notice --max-procs ${THREADCOUNT} --joblog="${THREAD_CONTROL}/joblog" --plus ${buildopts} \ --plain --no-notice --max-procs ${THREADCOUNT} --joblog="${THREAD_CONTROL}/joblog" --plus ${buildopts} \
package_worker {%} {#} {##} {} || result=1 package_worker {%} {#} {##} {} || result=1
[ -f "${THREAD_CONTROL}"/history ] && echo && cat "${THREAD_CONTROL}"/history | ${ROOT}/tools/mtstats.py
rm -f "${THREAD_CONTROL}/parallel.pid" rm -f "${THREAD_CONTROL}/parallel.pid"
fi fi

View File

@ -136,6 +136,7 @@ done
# Build image contents # Build image contents
MTADDONBUILD=no start_multithread_build image || die "Parallel build failure - see log for details. Time of failure: $(date)" MTADDONBUILD=no start_multithread_build image || die "Parallel build failure - see log for details. Time of failure: $(date)"
echo
echo "Successful build, creating image..." >&2 echo "Successful build, creating image..." >&2
# Create legacy sym links # Create legacy sym links