package batteries

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type stat = Gc.stat = {
  1. minor_words : float;
  2. promoted_words : float;
  3. major_words : float;
  4. minor_collections : int;
  5. major_collections : int;
  6. heap_words : int;
  7. heap_chunks : int;
  8. live_words : int;
  9. live_blocks : int;
  10. free_words : int;
  11. free_blocks : int;
  12. largest_free : int;
  13. fragments : int;
  14. compactions : int;
  15. top_heap_words : int;
  16. stack_size : int;
}
type control = Gc.control = {
  1. mutable minor_heap_size : int;
  2. mutable major_heap_increment : int;
  3. mutable space_overhead : int;
  4. mutable verbose : int;
  5. mutable max_overhead : int;
  6. mutable stack_limit : int;
  7. mutable allocation_policy : int;
  8. window_size : int;
}
val stat : unit -> stat
val quick_stat : unit -> stat
val counters : unit -> float * float * float
val minor_words : unit -> float
val get : unit -> control
val set : control -> unit
val minor : unit -> unit
val major_slice : int -> int
val major : unit -> unit
val full_major : unit -> unit
val compact : unit -> unit
val print_stat : Pervasives.out_channel -> unit
val allocated_bytes : unit -> float
val get_minor_free : unit -> int
val get_bucket : int -> int
val get_credit : unit -> int
val huge_fallback_count : unit -> int
val finalise : ('a -> unit) -> 'a -> unit
val finalise_last : (unit -> unit) -> 'a -> unit
val finalise_release : unit -> unit
type alarm = Gc.alarm
val create_alarm : (unit -> unit) -> alarm
val delete_alarm : alarm -> unit
OCaml

Innovation. Community. Security.