jemalloc
Jemalloc
Bindings to jemalloc. Monitor memory usage and control behaviour of jemalloc.
val release_free_memory : unit -> unit
Release as much memory as possible to operating system
exception Invalid_property of string
val version : unit -> string * int * int * string
version information: (human-readable string, major, minor, git version)
val mallctl_bool : string -> bool option -> bool
val mallctl_int : string -> int option -> int
val mallctl_string : string -> string option -> string
val mallctl_unit : string -> unit
type memory_stats = {
active : int;
resident : int;
allocated : int;
mapped : int;
}
val epoch : unit -> unit
epoch counter for the stats. Statistics are frozen to a snapshot value until the next epoch call refresh the snapshot
epoch
val get_stat : string -> int
stat counter from the "stats." mallctl prefix during current epoch
val get_memory_stats : unit -> memory_stats
refresh epoch and gather memory statistics
memory_stats