Module Metrics.TimeMetrics
Module to gather metrics about time.
val insert : string -> string -> [< `Start | `Stop ] -> unit Lwt.tinsert file fun_name stateinserts a new entry into the database, referenced as file.fun_name. It's either the starting of a measure or the end.
val exist : string -> string -> boolexist file fun_namechecks if there is already a reference to file.fun_name in the database.
val generate_report : string -> string -> unit Lwt.tgenerate_report path namebuilds a JSON report topath/namefrom the values present in the database. It creates the path if it doesn't exist.
val generate_report_on_signal : string -> string -> unit Lwt.tgenerate_report_on_signal path nameis the same asgenerate_reportwith, in addition, a mecanism to refill the queue with a value. We want to keep the report structure consistent.