Documentation
¶
Overview ¶
Command countgate measures what the Durable core costs on a recorded workload (package counts): bytes allocated, mallocs, Wasm instructions on an instrumented module, native instructions under callgrind, and the growth of the live set per turn. durable/contract/cli/counts.mjs runs it for each build and size and holds the results to the committed baseline, next to the counts of its own (rows, crossings, heap, linear memory).
countgate measure --rec FILE --size N [--tinygo core.wasm] [--go core.wasm] cells of the replays of one recording countgate instructions --rec FILE --size N the native instructions of the core's steps, under callgrind (Valgrind) countgate replay --rec FILE [--tinygo core.wasm] [--go core.wasm] replay a recording (a trap report's ring), print what it cost countgate flat --rec FILE the live set after each turn of a long recording through the native core; fails unless it is flat (the Durable 0.5.0 bar) countgate replay-native FILE replay the recording through the native core, nothing else (the callgrind subject)
Every replay compares each step with the step of the recorded run and stops at the first difference.
Click to show internal directories.
Click to hide internal directories.