package index
Module Index.StatsSource
Run-time metric tracking for index instances.
Source
type t = {mutable bytes_read : int;mutable nb_reads : int;mutable bytes_written : int;mutable nb_writes : int;mutable nb_merge : int;mutable merge_durations : float list;mutable nb_replace : int;mutable replace_durations : float list;mutable nb_sync : int;mutable time_sync : float;
}The type for stats for an index I.
bytes_readis the number of bytes read from disk;nb_readsis the number of reads from disk;bytes_writtenis the number of bytes written to disk;nb_writesis the number of writes to disk;nb_mergeis the number of times a merge occurred;merge_durationslists how much time the last 10 merge operations took (in microseconds);nb_replaceis the number of calls toI.replace;replace_durationslists how much time replace operations took. Each element is an average ofnconsecutive replaces, wherenis thesampling_intervalspecified when callingend_replace.time_syncis the duration of the latest call to sync.