package octez-shell-libs

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Tezos_shell_benchmarks.Io_helpersSource

Helpers for loading contexts, saving contexts, writing to contexts, etc. Also contains the Key_map module, heavily used for preparing benchmarks and computing statistics.

Sourceval assert_ok : msg:string -> ('a, Tezos_base.TzPervasives.tztrace) result -> 'a
Sourceval prepare_genesis : string -> (Tezos_context.Context.index * Tezos_protocol_environment.Context.t * Tezos_base.TzPervasives.Context_hash.t, Tezos_base.TzPervasives.tztrace) result Lwt.t
Sourceval commit : Tezos_protocol_environment.Context.t -> Tezos_base.TzPervasives.Context_hash.t Lwt.t
Sourceval load_context_from_disk_lwt : string -> Tezos_base.TzPervasives.Context_hash.t -> (Tezos_protocol_environment.Context.t * Tezos_context.Context.index) Lwt.t
Sourceval load_context_from_disk : string -> Tezos_base.TzPervasives.Context_hash.t -> Tezos_protocol_environment.Context.t * Tezos_context.Context.index
Sourceval with_context : base_dir:string -> context_hash:Tezos_base.TzPervasives.Context_hash.t -> (Tezos_protocol_environment.Context.t -> 'a Lwt.t) -> 'a
Sourceval prepare_base_dir : string -> unit
Sourceval initialize_key : Random.State.t -> Tezos_protocol_environment.Context.t -> Tezos_protocol_environment.Context.key -> int -> Tezos_protocol_environment.Context.t Lwt.t
Sourceval commit_and_reload : string -> Tezos_context.Context.index -> Tezos_protocol_environment.Context.t -> (Tezos_protocol_environment.Context.t * Tezos_context.Context.index) Lwt.t
Sourcemodule Key_map : sig ... end

Maps from string lists to bytes. No balancing. A key cannot be a prefix or a suffix to another key.

Sourceval take_n : int -> 'a list -> 'a list -> 'a list * 'a list
Sourceval sample_without_replacement : int -> 'a list -> 'a list * 'a list
Sourceval buffer_size : int
Sourceval buffer : bytes
Sourceval file_copy : string -> string -> unit
Sourceval set_infos : string -> Unix.stats -> unit
Sourceval iter_dir : (string -> 'a) -> string -> unit
Sourceval copy_rec : string -> string -> unit
OCaml

Innovation. Community. Security.