Mkernel.StatsSourceStatistics (counters) about devices and malloc.
The type of statistics of a device.
The type of device handle, used for stats.
all_devices () are the statistics sources for all devices (a triple of handle, name, type).
type malloc = {heap_words : int;total number of words allocatable on the heap.
*)live_words : int;number of allocated words on the heap.
*)stack_words : int;number of words used by the program stack.
*)free_words : int;number of free words on the heap.
*)}The type about memory usage as observed by malloc.
malloc ~quick () returns memory allocation statistics. If quick is provided and true (the default), it uses a pre-computed value. If quick is false the function mallinfo is used, which traverse the entire heap, and is thus more expensive and more accurate.