package tezos-context

  1. Overview
  2. Docs

Reads basic metrics from an existing store and prints them to stdout.

val run : root:string -> unit Lwt.t
val term_internal : (unit -> unit) Cmdliner.Term.t

A pre-packaged Cmdliner term for executing run.

val term : unit Cmdliner.Term.t * Cmdliner.Term.info

term is term_internal plus documentation and logs initialisation

Internal implementation utilities exposed for use in other integrity checks.

type size =
  1. | Bytes of int
val size_t : size Irmin.Type.t
type version = [
  1. | `V1
  2. | `V2
]
val version_t : version Irmin.Type.t
type io = {
  1. size : size;
  2. offset : Optint.Int63.t;
  3. generation : Optint.Int63.t;
  4. version : version;
}
val io_t : io Irmin.Type.t
type files = {
  1. pack : io option;
  2. branch : io option;
  3. dict : io option;
}
val files_t : files Irmin.Type.t
type objects = {
  1. nb_commits : int;
  2. nb_nodes : int;
  3. nb_contents : int;
}
val objects_t : objects Irmin.Type.t
val v : root:string -> version:Irmin_pack.Version.t -> files
val detect_version : root:string -> Irmin_pack.Version.t
val traverse_index : root:string -> int -> objects
OCaml

Innovation. Community. Security.