Module Statistics.Compose

Functor that composes two statistic modules (A and B) into a single Statistics module.

Parameters

module A : Stats
module B : Stats

Signature

type t

The type of values being processed.

val process : int -> t -> unit

A node_id has produced/seen a value.

val get : unit -> string

Returns a JSON string containing the statistics and respective values.

val clear : unit -> unit

Reset statistics data.