This repository has been archived on 2026-08-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
el-retired/docs/v1/experiments/evidence/cycles/06-the-crossing-resolves-at-emission/0276-hottest-functions-measured-06a.cmd
T
will d3495476f4
El SDK Release / build-and-release (push) Failing after 13m0s
kill: purge old-paradigm dist/platform binaries from tree
The generated C, amalgams, vendored runtime pins, and compiled binaries
from the Claude Code era are removed from the worktree. The El sources
survive; this tree is now source-only for the first-principles rebuild.

Per Principal direction 2026-08-19.
2026-08-19 19:46:15 -05:00

22 lines
1.4 KiB
Batchfile

bash -c SRCS=$(../scripts/el-runtime-sources.sh runtime); CF="-std=c11 -O2 -rdynamic -I runtime"; LF=""; for d in /opt/homebrew/opt/openssl@3 /usr/local/opt/openssl@3; do [ -d "$d" ] && CF="$CF -I $d/include" && LF="-L $d/lib"; done; LF="$LF -lcurl -lssl -lcrypto -lpthread -lm";
set -e
S=/private/tmp/claude-501/-Users-will/6531446d-bc27-4095-930b-e04777c3db4f/scratchpad
# probe compiler = the SELF-HOSTED emission (gen2, 266 seam indirections) + counting target
cc $CF -o /tmp/elc06a.hot /tmp/g06a.gen2.c $S/hotcount_targets_06.c $SRCS $LF 2>/dev/null
grep -oE "^[[:space:]]*el_seam_run\(EL_STR\(\"[^\"]*\"" /tmp/g06a.gen2.c | sed -E "s/.*EL_STR\(\"//; s/\"$//" | sort -u > /tmp/fns06.txt
echo "functions carrying a seam indirection: $(wc -l < /tmp/fns06.txt | tr -d " ")"
rm -f /tmp/hot06.all
# EL_SEAM_MAX is 256, so bind in two batches
split -l 133 /tmp/fns06.txt /tmp/fnsb06.
for b in /tmp/fnsb06.*; do
awk "{print \$1 \" probe entry count_hit\"}" "$b" > /tmp/tbl06.txt
EL_CONSTRUCTS=/tmp/tbl06.txt /tmp/elc06a.hot elc-cli.el > /dev/null 2>>/tmp/hot06.all
done
echo
echo "=== TOP 20 hottest functions of the compiler, compiling elc-cli.el ==="
grep "^HOTCOUNT" /tmp/hot06.all | sort -t" " -k2 -nr | head -20 | awk -F"\t" "{printf \" %12s %s\n\", \$2, \$3}"
echo
printf "total measured crossings: "; grep "^HOTCOUNT" /tmp/hot06.all | awk -F"\t" "{s+=\$2} END{print s}"
printf "distinct fns observed: "; grep -c "^HOTCOUNT" /tmp/hot06.all