package irmin-pack

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Find : sig ... end
type t = {
  1. finds : Find.t;
  2. mutable appended_hashes : int;
  3. mutable appended_offsets : int;
  4. mutable inode_add : int;
  5. mutable inode_remove : int;
  6. mutable inode_of_seq : int;
  7. mutable inode_of_raw : int;
  8. mutable inode_rec_add : int;
  9. mutable inode_rec_remove : int;
  10. mutable inode_to_binv : int;
  11. mutable inode_decode_bin : int;
  12. mutable inode_encode_bin : int;
}

The type for stats for a store S.

  • finds stores the total number of calls to S.find, and tracks the source locations of successful finds (i.e. whether the value was recovered from the staging table, LRU, or the pack file);
  • 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;
  • inode_add + inode_remove + inode_of_seq + inode_of_raw is the total number of Inode.Val.t built;
  • inode_rec_add + inode_rec_remove are witnesses of the quantity of work that is done modifying inodes;
  • inode_to_binv is the number of Inode.Bin.v built;
  • inode_encode_bin is the number of Bin to Compress conversions;
  • inode_decode_bin is the number of Compress to Bin conversions;
val t : t Irmin.Type.t
val reset_stats : unit -> unit
val get : unit -> t
val report_find : location:Find.location -> unit
val incr_appended_hashes : unit -> unit
val incr_appended_offsets : unit -> unit
val incr_inode_add : unit -> unit
val incr_inode_remove : unit -> unit
val incr_inode_of_seq : unit -> unit
val incr_inode_of_raw : unit -> unit
val incr_inode_rec_add : unit -> unit
val incr_inode_rec_remove : unit -> unit
val incr_inode_to_binv : unit -> unit
val incr_inode_decode_bin : unit -> unit
val incr_inode_encode_bin : 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.