diff --git a/ninja_profile.awk b/ninja_profile.awk new file mode 100755 index 0000000..09c956b --- /dev/null +++ b/ninja_profile.awk @@ -0,0 +1,14 @@ +#!/usr/bin/awk -f + +!/^#/ { + TIMES[$4] += ($2 - $1)/1000 + COUNT[$4] += 1 +} + +END { + for (TGT in TIMES) + AVG[TGT]=TIMES[TGT]/COUNT[TGT] + asorti(AVG, SORTED, "@val_num_desc") + for (num in SORTED) + print AVG[SORTED[num]] " " SORTED[num] +}