Module tvix_eval::observer

source ·
Expand description

Implements traits for things that wish to observe internal state changes of tvix-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§

  • An observer that prints disassembled chunk information to its internal writer whenwever the compiler emits a toplevel function, closure or thunk.
  • An observer that collects a textual representation of an entire runtime execution.

Traits§

  • Implemented by types that wish to observe internal happenings of the Tvix compiler.
  • Implemented by types that wish to observe internal happenings of the Tvix virtual machine at runtime.