package irmin-pack

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

Module Irmin_pack.StatsSource

Sourcetype 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

Sourceval reset_stats : unit -> unit
Sourceval get : unit -> t
Sourceval incr_finds : unit -> unit
Sourceval incr_cache_misses : unit -> unit
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.