Skip to content

Commit e416c8c

Browse files
fix(script): update the trend to use unicode arrows
1 parent 9ede505 commit e416c8c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/summarize_scope_times.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# 1) Per-key two-line block:
2727
# <key>
2828
# <v1> <v2> <v3> ... (all elapsed values in order seen)
29-
# 2) Per-key summary: count, min, avg, max
29+
# 2) Per-key summary: count, min, avg, max, trend (↑ = increasing, ↓ = decreasing, - = stable)
3030
#
3131
# Usage:
3232
# ./summarize_scope_times.sh [ScopeTimer.log.cleaned]
@@ -128,9 +128,9 @@ END {
128128
delta = lavg - favg
129129
rel = (favg > 0 ? delta / favg : 0)
130130
# Consider trend only if both absolute and relative change pass thresholds
131-
if (delta > 5 && rel > 0.05) trend = "/"
132-
else if (delta < -5 && -rel > 0.05) trend = "\\"
133-
else trend = "-"
131+
if (delta > 5 && rel > 0.05) trend = ""
132+
else if (delta < -5 && -rel > 0.05) trend = ""
133+
else trend = "-"
134134
}
135135
136136
printf("%s\n count=%d min=%s avg=%s max=%s %s\n\n",

0 commit comments

Comments
 (0)