Module Backend__BackendStats

type t
val initial : t
val incr_summary_file_try_load : unit -> unit

a query to the filesystem attempting to load a summary file

val incr_summary_read_from_disk : unit -> unit

a summary file is deserialized from disk

val incr_summary_cache_hits : unit -> unit
val incr_summary_cache_misses : unit -> unit
val incr_ondemand_procs_analyzed : unit -> unit
val incr_ondemand_local_cache_hits : unit -> unit
val incr_ondemand_local_cache_misses : unit -> unit
val add_to_proc_locker_lock_time : Backend.ExecutionDuration.t -> unit
val add_to_proc_locker_unlock_time : Backend.ExecutionDuration.t -> unit
val add_to_restart_scheduler_total_time : Backend.ExecutionDuration.t -> unit
val add_to_restart_scheduler_useful_time : Backend.ExecutionDuration.t -> unit
val set_analysis_time : t -> Backend.ExecutionDuration.t -> unit
val reset : unit -> unit

reset all stats

val get : unit -> t

get the stats so far

val pp : Stdlib.Format.formatter -> t -> unit
val merge : t -> t -> t

return a new value that adds up the stats in both arguments

val log_to_scuba : t -> unit

Log aggregated backend stats to Scuba. Use after the stats have been fully calculated