type t = {minor_words : Core_kernel__.Import.float; | (** Number of words allocated in the minor heap since the program was started. This number is accurate in byte-code programs, but only an approximation in programs compiled to native code. *) |
promoted_words : Core_kernel__.Import.float; | (** Number of words allocated in the minor heap that survived a minor collection and were moved to the major heap since the program was started. *) |
major_words : Core_kernel__.Import.float; | (** Number of words allocated in the major heap, including the promoted words, since the program was started. *) |
minor_collections : Core_kernel__.Import.int; | (** Number of minor collections since the program was started. *) |
major_collections : Core_kernel__.Import.int; | (** Number of major collection cycles completed since the program was started. *) |
heap_words : Core_kernel__.Import.int; | (** Total size of the major heap, in words. *) |
heap_chunks : Core_kernel__.Import.int; | (** Number of contiguous pieces of memory that make up the major heap. *) |
live_words : Core_kernel__.Import.int; | (** Number of words of live data in the major heap, including the header words. *) |
live_blocks : Core_kernel__.Import.int; | (** Number of live blocks in the major heap. *) |
free_words : Core_kernel__.Import.int; | (** Number of words in the free list. *) |
free_blocks : Core_kernel__.Import.int; | (** Number of blocks in the free list. *) |
largest_free : Core_kernel__.Import.int; | (** Size (in words) of the largest block in the free list. *) |
fragments : Core_kernel__.Import.int; | (** Number of wasted words due to fragmentation. These are 1-words free blocks placed between two live blocks. They are not available for allocation. *) |
compactions : Core_kernel__.Import.int; | (** Number of heap compactions since the program was started. *) |
top_heap_words : Core_kernel__.Import.int; | (** Maximum size reached by the major heap, in words. *) |
stack_size : Core_kernel__.Import.int; | (** Current size of the stack, in words. *) |
}include sig ... endval bin_t : t Bin_prot.Type_class.tval bin_read_t : t Bin_prot.Read.readerval __bin_read_t__ : (Core_kernel__.Import.int ‑> t) Bin_prot.Read.readerval bin_reader_t : t Bin_prot.Type_class.readerval bin_size_t : t Bin_prot.Size.sizerval bin_write_t : t Bin_prot.Write.writerval bin_writer_t : t Bin_prot.Type_class.writerval bin_shape_t : Bin_prot.Shape.tval t_of_sexp : Base.Sexp.t ‑> tval sexp_of_t : t ‑> Base.Sexp.tval stack_size : t ‑> Core_kernel__.Import.intval top_heap_words : t ‑> Core_kernel__.Import.intval compactions : t ‑> Core_kernel__.Import.intval fragments : t ‑> Core_kernel__.Import.intval largest_free : t ‑> Core_kernel__.Import.intval free_blocks : t ‑> Core_kernel__.Import.intval free_words : t ‑> Core_kernel__.Import.intval live_blocks : t ‑> Core_kernel__.Import.intval live_words : t ‑> Core_kernel__.Import.intval heap_chunks : t ‑> Core_kernel__.Import.intval heap_words : t ‑> Core_kernel__.Import.intval major_collections : t ‑> Core_kernel__.Import.intval minor_collections : t ‑> Core_kernel__.Import.intval major_words : t ‑> Core_kernel__.Import.floatval promoted_words : t ‑> Core_kernel__.Import.floatval minor_words : t ‑> Core_kernel__.Import.floatmodule Fields : sig ... endinclude Comparable.S with type t := tinclude Core_kernel__.Comparable_intf.S_commoninclude Base.Comparable.Sinclude Base__.Comparable_intf.Polymorphic_compareascending is identical to compare. descending x y = ascending y x. These are
intended to be mnemonic when used like List.sort ~compare:ascending and List.sort
~cmp:descending, since they cause the list to be sorted in ascending or descending
order, respectively.
clamp_exn t ~min ~max returns t', the closest value to t such that
between t' ~low:min ~high:max is true.
Raises if not (min <= max).
val clamp : t ‑> min:t ‑> max:t ‑> t Base.Or_error.tinclude Base.Comparator.S with type t := tval comparator : (t, comparator_witness) Base.Comparator.comparatorinclude Base__.Comparable_intf.Validate with type t := tval validate_lbound : min:t Base.Maybe_bound.t ‑> t Base.Validate.checkval validate_ubound : max:t Base.Maybe_bound.t ‑> t Base.Validate.checkval validate_bound : min:t Base.Maybe_bound.t ‑> max:t Base.Maybe_bound.t ‑> t Base.Validate.checkmodule Replace_polymorphic_compare : Core_kernel__.Comparable_intf.Polymorphic_compare with type t := tmodule Map : Map.S with type Key.t = t with type Key.comparator_witness = comparator_witnessmodule Set : Set.S with type Elt.t = t with type Elt.comparator_witness = comparator_witness