Performance profiling and smart garbage collection.
alloc-countReturn the number of heap objects allocated.
Returns: INT — Total heap allocations since last reset
eval-countReturn the number of eval invocations.
Returns: INT — Total eval calls since last reset
tco-countReturn the number of tail-call optimizations performed.
Returns: INT — Total tail-call optimizations since last reset
assoc-calls-countReturn the number of association list lookup operations.
Returns: INT — Total alist lookup calls
assoc-steps-countReturn the total steps walked during alist lookups.
Returns: INT — Total alist walk steps
sym-find-calls-countReturn the number of symbol lookup operations.
Returns: INT — Total symbol-find calls
sym-find-steps-countReturn the total steps walked during symbol lookups.
Returns: INT — Total symbol-find steps
gc-runs-countReturn the number of garbage collection runs.
Returns: INT — Total GC mark/sweep cycles
bst-hits-countReturn the number of successful BST (binary search tree) lookups.
Returns: INT — BST cache hits
bst-misses-countReturn the number of BST lookups that fell through to alist walk.
Returns: INT — BST cache misses
profile-resetReset all performance counters to zero.
heap-collect-forceForce a full GC mark/sweep cycle, returning the number of objects freed.
Returns: INT — Number of objects freed
heap-collectSmart GC: only collect when allocations since last run exceed surviving objects.
Returns: INT — Number of objects freed, or 0 if skipped
profile-dumpDump all profile counters to stderr.