package irmin-pack

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Pack_store : sig ... end
module Index : sig ... end
type t = {
  1. pack_store : Pack_store.stat;
  2. index : Index.stat;
}
val reset_stats : unit -> unit
val 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).

val 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.

val report_index : unit -> unit

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

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