Module Stats.StatLogger
Save stats between mutliple codex runs. Each logger saves a mapping string -> stat between various runs.
THE LOGGER MUST BE INSTANCIATED BEFORE THE STARTUP HOOK IS EXECUTED, an failwith will be triggered if that is not the case.
Parameters
module S : sig ... endSignature
val add : string -> S.stat -> unitadd key stat Add a stat with the given key. If a stat is already present for this key, they are merged with S.combine key old_stat stat
val get : string -> S.stat optionGet the stat value for the key, None if the key is undefined.
val to_list : unit -> (string * S.stat) listReturn a list of all defined keys and their associated value