package cactus

  1. Overview
  2. Docs

Module Private.Index_statsSource

Sourcetype t = {
  1. mutable bytes_read : int;
  2. mutable nb_reads : int;
  3. mutable bytes_written : int;
  4. mutable nb_writes : int;
  5. mutable nb_replace : int;
}

The type for stats for an index I.

  • bytes_read is the number of bytes read from disk;
  • nb_reads is the number of reads from disk;
  • bytes_written is the number of bytes written to disk;
  • nb_writes is the number of writes to disk;
  • nb_replace is the number of calls to I.replace.
Sourceval get : unit -> t
Sourceval reset_stats : unit -> unit
Sourceval add_read : int -> unit
Sourceval add_write : int -> unit
Sourceval incr_nb_replace : unit -> unit