Show each measurement command in the analysis.

This commit is contained in:
Andrew Wood
2026-05-30 22:29:47 +01:00
parent 067c9aa7a3
commit 3628ed5072
+5 -1
View File
@@ -375,9 +375,13 @@ END {
# measurement was available, report nothing as no comparison
# can be made.
test "$(grep -c . "${workDir}/measurements-per-version")" -lt 2 && continue
# Show the measurement name.
# Show the measurement name and associated command.
# Take the measurement name from the input data.
measurementName="$(awk -F "\t" -v "mId=${measurementId}" '$4=="σ" && $5==mId {print $NF;exit}' "${workDir}/raw-system-data")"
# Take the command from the definitions.
templateCommand="$(printf '%s\n' "${measurementDefinitions}" | awk -F '!' -v "mId=${measurementId}" '$1==mId {print $5}')"
printf '\n%s\n' "${measurementName}"
test -n "${templateCommand}" && printf ' (%s)\n' "${templateCommand}"
# Report each version's measurements and how they compare to
# the previous version.
#