package core

  1. Overview
  2. Docs
On This Page
  1. Resource usage
Legend:
Library
Module
Module type
Parameter
Class
Class type

Resource usage

-- For details, "man getrusage"

type t = {
  1. utime : float;
  2. stime : float;
  3. maxrss : int64;
  4. ixrss : int64;
  5. idrss : int64;
  6. isrss : int64;
  7. minflt : int64;
  8. majflt : int64;
  9. nswap : int64;
  10. inblock : int64;
  11. oublock : int64;
  12. msgsnd : int64;
  13. msgrcv : int64;
  14. nsignals : int64;
  15. nvcsw : int64;
  16. nivcsw : int64;
}
include Ppx_sexp_conv_lib.Sexpable.S with type t := t
val t_of_sexp : Sexplib0__.Sexp.t -> t
val sexp_of_t : t -> Sexplib0__.Sexp.t
val nivcsw : t -> int64
val nvcsw : t -> int64
val nsignals : t -> int64
val msgrcv : t -> int64
val msgsnd : t -> int64
val oublock : t -> int64
val inblock : t -> int64
val nswap : t -> int64
val majflt : t -> int64
val minflt : t -> int64
val isrss : t -> int64
val idrss : t -> int64
val ixrss : t -> int64
val maxrss : t -> int64
val stime : t -> float
val utime : t -> float
module Fields : sig ... end
val get : [ `Self | `Children ] -> t
val add : t -> t -> t

add ru1 ru2 adds two rusage structures (e.g. your resource usage and your children's).

OCaml

Innovation. Community. Security.