Record a single-call instruction counter snapshot when the surrounding
scope exits.
Expands to a defer! guard that logs the total instructions consumed in
the enclosing scope, tagged as Log::Perf. Pair this
with manual checkpoints logged via perf to track both cumulative and incremental
usage.