package irmin-pack

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. mutable finds : int;
  2. mutable cache_misses : int;
  3. mutable appended_hashes : int;
  4. mutable appended_offsets : int;
}

The type for stats for a store S.

  • finds is the number of calls to S.find;
  • cache_misses is the number of times a cache miss occured during calls to S.find;
  • appended_hashes is the number of times a hash was appended, during calls to add;
  • appended_offsets is the number of times an offset was appended, during calls to add;

appended_hashes + appended_offsets = the number of calls to add

val reset_stats : unit -> unit
val get : unit -> t
val incr_finds : unit -> unit
val incr_cache_misses : unit -> unit
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
OCaml

Innovation. Community. Security.