Module Core_profiler_offline_tool.Reservoir_sampling

type t
include sig ... end
val t_of_sexp : Sexplib.Sexp.t ‑> t
val sexp_of_t : t ‑> Sexplib.Sexp.t
val create : ?num_samples_to_keep:int ‑> unit ‑> t
val add : t ‑> int ‑> unit
val percentile : t ‑> float ‑> int Core.Or_error.t
val percentile_exn : t ‑> float ‑> int
val distribution : t ‑> int list