module Sysinfo: sig
.. end
type
t = {
|
uptime :Span.t ; |
|
load1 :int ; |
|
load5 :int ; |
|
load15 :int ; |
|
total_ram :int ; |
|
free_ram :int ; |
|
shared_ram :int ; |
|
buffer_ram :int ; |
|
total_swap :int ; |
|
free_swap :int ; |
|
procs :int ; |
|
totalhigh :int ; |
|
freehigh :int ; |
|
mem_unit :int ; |
}
Result of sysinfo syscall (man 2 sysinfo)
val bin_size_t : t Bin_prot.Size.sizer
val bin_write_t : t Bin_prot.Write_ml.writer
val bin_write_t_ : t Bin_prot.Unsafe_write_c.writer
val bin_writer_t : t Bin_prot.Type_class.writer
val bin_read_t : t Bin_prot.Read_ml.reader
val bin_read_t_ : t Bin_prot.Unsafe_read_c.reader
val bin_read_t__ : (int -> t) Bin_prot.Unsafe_read_c.reader
val bin_reader_t : t Bin_prot.Type_class.reader
val bin_t : t Bin_prot.Type_class.t
val sexp_of_t : t -> Sexplib.Sexp.t
val t_of_sexp : Sexplib.Sexp.t -> t
val sysinfo : (unit -> t) Or_error.t