about summary refs log tree commit diff stats
path: root/400.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-05-29 15:40:58 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-05-29 15:40:58 -0700
commit8dc3c85a0336acfcb8c0fb67ea10307769f3dad2 (patch)
treef1d1b7fa3e9e5c1e726ece8274b680c04377ef03 /400.mu
parent210553ac6803f278e4ec5f604133b3e1e2126276 (diff)
downloadmu-8dc3c85a0336acfcb8c0fb67ea10307769f3dad2.tar.gz
.
Minor counter infrastructure. We invoke next-token 1400 times while loading
the shell's data disk, so we're wasting around 1.4MB during tokenization.
Diffstat (limited to '400.mu')
-rw-r--r--400.mu3
1 files changed, 3 insertions, 0 deletions
diff --git a/400.mu b/400.mu
index 3b81d44a..23890ea9 100644
--- a/400.mu
+++ b/400.mu
@@ -34,6 +34,9 @@ sig turn-off-debug-print
 sig abort e: (addr array byte)
 sig dump-call-stack
 
+sig count-event
+sig count-of-events -> _/eax: int
+
 # streams
 sig clear-stream f: (addr stream _)
 sig rewind-stream f: (addr stream _)