Process and system stats
include sig ... endval bigint_of_sexp : Base.Sexp.t ‑> bigintval sexp_of_bigint : bigint ‑> Base.Sexp.tval input_all_with_reused_buffer : unit ‑> (string ‑> string) Core.Staged.tmodule Process : sig ... endmodule Meminfo : sig ... endmodule Kstat : sig ... endmodule Loadavg : sig ... endval get_all_procs : unit ‑> Process.t listget_all_procs returns a list of all processes on the system
val with_pid_exn : Core.Pid.t ‑> Process.twith_pid_exn pid returns a single process that matches pid, or raises Not_found
val pkill : signal:Core.Signal.t ‑> (Process.t ‑> bool) ‑> (Core.Pid.t * (unit, Core.Unix.Error.t) Core.Result.t) listpkill ~signal f sends the signal to all processes for which f returns true. It
returns the list of processes that were signaled, and the resulting errors if any.
val with_username_exn : string ‑> Process.t listwith_username_exn user calls with_uid after looking up the user's uid
val with_username : string ‑> Process.t list optionwith_username user calls with_uid after looking up the user's uid
val jiffies_per_second_exn : unit ‑> floatjiffies_per_second_exn. A jiffy "is one tick of the system timer interrupt. It is
not an absolute time interval unit, since its duration depends on the clock interrupt
frequency of the particular hardware platform."
Further reading: https://secure.wikimedia.org/wikipedia/en/wiki/Jiffy_(time)
val meminfo_exn : unit ‑> Meminfo.tmeminfo_exn queries /proc/meminfo and fills out Meminfo.t. All values in bytes.
val meminfo : unit ‑> Meminfo.t optionval loadavg : unit ‑> Loadavg.t optionmodule Net : sig ... endmodule Mount : sig ... endval mounts : unit ‑> Mount.t listval mounts_of_fstab : unit ‑> Mount.t listval uptime : unit ‑> Core.Time.Span.tval process_age : Process.t ‑> Core.Time.Span.t optionval process_age' : jiffies_per_second:float ‑> Process.t ‑> Core.Time.Span.t