package irmin-pack

  1. Overview
  2. Docs
Irmin backend which stores values in a pack file

Install

Dune Dependency

Authors

Maintainers

Sources

irmin-3.3.1.tbz
sha256=535254ca443858bfc9e540535977fed63e9206d4b78c5cac0239d1e6657b5c78
sha512=fa18557fcf808121a0495de707c6f7bff4a69197b310480816648adafd4a659b5673a1f5bbf4574f517b7d93253735ef7798b0c365d87afac60675007ef19b54

doc/irmin-pack.unix/Irmin_pack_unix/Stats/index.html

Module Irmin_pack_unix.StatsSource

Sourcemodule Pack_store : sig ... end
Sourcemodule Index : sig ... end
Sourcetype t = {
  1. pack_store : Pack_store.stat;
  2. index : Index.stat;
}
Sourceval reset_stats : unit -> unit
Sourceval get : unit -> t

get () returns the t that stores the satistics. If report_pack_store or report_index is not called before, the content will be filled with default value, decided at create time (most the time, 0).

Sourceval report_pack_store : field:Pack_store.field -> unit

report_pack_store ~field incrementes the field value in the pack_store stats. It also incrementes the total field in Pack_store.t when the field is related to finds.

Sourceval report_index : unit -> unit

report_index () fills the stats with value from the Index.Stats module.

Sourceval incr_appended_hashes : unit -> unit
Sourceval incr_appended_offsets : unit -> unit
Sourcetype cache_stats = {
  1. cache_misses : float;
}
Sourcetype offset_stats = {
  1. offset_ratio : float;
  2. offset_significance : int;
}
Sourceval get_cache_stats : unit -> cache_stats
Sourceval get_offset_stats : unit -> offset_stats
OCaml

Innovation. Community. Security.