Expand description
Implements traits for things that wish to observe internal state changes of snix-eval.
This can be used to gain insights from compilation, to trace the runtime, and so on.
All methods are optional, that is, observers can implement only
Structs§
- Disassembling
Observer - An observer that prints disassembled chunk information to its internal writer whenwever the compiler emits a toplevel function, closure or thunk.
- NoOp
Observer - Optional
Compiler Observer - Compiler observer that is optimised for the case where no observer is being used.
- Optional
Runtime Observer - Runtime observer that is optimised for the case where no observer is being used.
- Tracing
Observer - An observer that collects a textual representation of an entire runtime execution.
Traits§
- Compiler
Observer - Implemented by types that wish to observe internal happenings of the Snix compiler.
- Runtime
Observer - Implemented by types that wish to observe internal happenings of the Snix virtual machine at runtime.