Merge "Sort the list of scripts in the profile view"

This commit is contained in:
Jenkins 2014-09-29 10:23:38 +00:00 committed by Gerrit Code Review
commit bfe7957863

View File

@ -99,7 +99,7 @@ printf "%-40s %9s\n" Script Seconds
printf "%-40s %9s\n" --------------------------------------- ---------- printf "%-40s %9s\n" --------------------------------------- ----------
echo "" echo ""
pushd $PROFILE_DIR > /dev/null pushd $PROFILE_DIR > /dev/null
for target in $(find . -name 'start_*' -printf '%f\n') ; do for target in $(find . -name 'start_*' -printf '%f\n' | env LC_ALL=C sort -n) ; do
stop_file=stop_${target##start_} stop_file=stop_${target##start_}
start_seconds=$(cat $target) start_seconds=$(cat $target)
stop_seconds=$(cat $stop_file) stop_seconds=$(cat $stop_file)