Tensor.For_testingDiagnostics and negative controls for the checkpoint machinery's tests.
val trace_scheme :
sabotage:Shape.Scheme.sabotage ->
label:Base.string ->
Base.int ->
(t Base.list -> t Base.list) ->
Scheme.tScheme.trace with one part of the mechanism disabled: negative controls.
val instantiate_scheme :
sabotage:Shape.Scheme.sabotage ->
?application:Base.string ->
Scheme.t ->
args:Shape.t Base.list ->
results:Shape.t Base.list ->
Base.unitScheme.instantiate with one part of the mechanism disabled: negative controls.
val observe_schemes :
(Base.unit -> 'a) ->
on_event:(Scheme.event -> Base.unit) ->
'aRuns the function, reporting the automatic schemes' events to on_event.
Overrides the op_shape_schemes setting in-process (None: back to the setting).
The records the session holds of what rewinds discarded, by kind (nodes, capture references, update steps). Call it after a full major collection to count only what is reachable.
Runs the function with the shape-scheme windows allocating session ids: a negative control of their id neutrality.
val rewind_omitting : omit:Base.string -> checkpoint -> Base.unitrewind skipping one restore category: to show a test's oracle notices it.
val checkpoint_differences : checkpoint -> Base.string Base.listThe components of the session that differ from the checkpoint (physically; padding arrays by contents), by name.
val checkpoint_sizes : checkpoint -> (Base.string * Base.int) Base.listThe open frontier's sizes at the checkpoint.
val forward_conflicts_by_cells : t -> Base.string Base.listThe roots consume_forward_code would refuse t over, by name, as its owner cells say (gh-ocannl-1796).
val forward_conflicts_by_live_roots : t -> Base.string Base.listThe same, by the pre-gh-ocannl-1796 rule over the live forward roots: equal to forward_conflicts_by_cells while every root is held.
val owner_count : t -> Base.intThe number of owners t's forward owner cell records, as last compacted (the probe compacts nothing itself).