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.2.tbz
sha256=95a87ecc3dc2b35eee56cb351c32d2bd78c8967180a4b028324d815bfce1a6ff
sha512=20faba561c80c5389e91993d7e2cc0cedd1330cf098b68f0456f5068cde369a5589a05cd2aeb0a701d65a7d1e1e6f4045ccfbf60349cbea2bfd02981d7bb244c

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.