Module Bonsai_private_base.Annotate_incr

val enable : unit -> unit
val disable : unit -> unit
module Kind : sig ... end
val on_incr_annotation : (here:Core.Source_code_position.t -> Kind.t -> Ui_incr.Packed.t -> unit) -> unit

on_incr_annotation registers a callback that will run whenever Bonsai annotates an incremental node. Annotation happens:

  • On node creation
  • When a node is registered as an input or result to a Snapshot.t

A single node may be annotated multiple times, e.g. if it is both a model and a result.

val annotate : here:Core.Source_code_position.t -> Kind.t -> 'a Ui_incr.t -> unit

annotate will run all on_incr_annotation listeners.

val annotate_packed : here:Core.Source_code_position.t -> Kind.t -> Ui_incr.Packed.t -> unit
module Counts : sig ... end
val attribute : Core.Source_code_position.t -> 'a Ui_incr.t -> unit
val attribute_packed : Core.Source_code_position.t -> Ui_incr.Packed.t -> unit
module For_profiling : sig ... end