Module Maki.GC

type stats = {
roots : int;
kept : int;
removed : int;
}
val string_of_stats : stats ‑> string
val cleanup : ?⁠force:bool ‑> Storage.t ‑> stats or_error Lwt.t

cleanup s removes uneeded values and uneeded dependencies, and returns some statistics. It might take a long time.