Commit 6773cf3
irmin-lwt: expose Tree.inspect, counters, dump_counters, reset_counters, merge
These were missing from the [Tree] submodule of [module type S]:
- [val merge : t Irmin.Merge.t]: the merge value used by Irmin tree
combinators.
- [type counters], [val counters], [val dump_counters],
[val reset_counters]: the performance counters shared between all
trees backed by the same set of internal caches. [counters] is kept
abstract since it is a record (nominal typing) and the underlying
[S.Tree.counters] is abstract from inside the functor body.
- [val inspect]: a synchronous inspector returning a transparent variant
describing the kind and internal state of a tree node ([`Map],
[`Key], [`Value], [`Portable_dirty], [`Pruned]).
[helpers/context.ml] in Octez calls [inspect] for debugging /
introspection paths.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 3e573c6 commit 6773cf3
2 files changed
Lines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
600 | 613 | | |
601 | 614 | | |
602 | 615 | | |
| |||
1134 | 1147 | | |
1135 | 1148 | | |
1136 | 1149 | | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
1137 | 1159 | | |
1138 | 1160 | | |
1139 | 1161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
619 | 638 | | |
620 | 639 | | |
621 | 640 | | |
| |||
0 commit comments