Malloc bindings
Allows you to set/query the behaviour of malloc. The functions in this module may not be implemented on your platform.
type mallinfo
=
{
}
include sig ... end
val mallinfo_of_sexp : Sexplib.Sexp.t ‑> mallinfo
val sexp_of_mallinfo : mallinfo ‑> Sexplib.Sexp.t
val bin_mallinfo : mallinfo Bin_prot.Type_class.t
val bin_read_mallinfo : mallinfo Bin_prot.Read.reader
val __bin_read_mallinfo__ : (int ‑> mallinfo) Bin_prot.Read.reader
val bin_reader_mallinfo : mallinfo Bin_prot.Type_class.reader
val bin_size_mallinfo : mallinfo Bin_prot.Size.sizer
val bin_write_mallinfo : mallinfo Bin_prot.Write.writer
val bin_writer_mallinfo : mallinfo Bin_prot.Type_class.writer
val bin_shape_mallinfo : Bin_prot.Shape.t
type opt
=
Malloc options
include sig ... end
val opt_of_sexp : Sexplib.Sexp.t ‑> opt
val sexp_of_opt : opt ‑> Sexplib.Sexp.t
val bin_opt : opt Bin_prot.Type_class.t
val bin_read_opt : opt Bin_prot.Read.reader
val __bin_read_opt__ : (int ‑> opt) Bin_prot.Read.reader
val bin_reader_opt : opt Bin_prot.Type_class.reader
val bin_size_opt : opt Bin_prot.Size.sizer
val bin_write_opt : opt Bin_prot.Write.writer
val bin_writer_opt : opt Bin_prot.Type_class.writer
val bin_shape_opt : Bin_prot.Shape.t
val mallinfo : (unit ‑> mallinfo) Core.Or_error.t
mallinfo ()
val mallopt : (opt ‑> int ‑> unit) Core.Or_error.t
mallopt opt n
sets malloc configuration option opt
to n
.
val malloc_trim : (int ‑> unit) Core.Or_error.t
malloc_trim n
release all but n
bytes of freed top-most memory
back to the system.
val malloc_stats : (unit ‑> unit) Core.Or_error.t
malloc_stats ()
prints brief summary statistics on stderr.