package uwt

  1. Overview
  2. Docs
type timeval = {
  1. sec : int;
  2. usec : int;
}
type rusage = {
  1. utime : timeval;
  2. stime : timeval;
  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. outblock : int64;
  12. msgsnd : int64;
  13. msgrcv : int64;
  14. nsignals : int64;
  15. nvcsw : int64;
  16. nivcsw : int64;
}
type cpu_times = {
  1. user : int64;
  2. nice : int64;
  3. sys : int64;
  4. idle : int64;
  5. irq : int64;
}
type cpu_info = {
  1. model : string;
  2. speed : int;
  3. cpu_times : cpu_times;
}
type interface_address = {
  1. name : string;
  2. phys_addr : string;
  3. is_internal : bool;
  4. address : sockaddr option;
  5. netmask : sockaddr option;
}
type handle_type =
  1. | File
  2. | Tty
  3. | Pipe
  4. | Tcp
  5. | Udp
  6. | Unknown
val guess_handle : Unix.file_descr -> handle_type
val resident_set_memory : unit -> int64 uv_result
val resident_set_memory_exn : unit -> int64
val uptime : unit -> float uv_result
val uptime_exn : unit -> float
val getrusage : unit -> rusage uv_result
val getrusage_exn : unit -> rusage
val cpu_info : unit -> cpu_info array uv_result
val cpu_info_exn : unit -> cpu_info array
val interface_addresses : unit -> interface_address array uv_result
val interface_addresses_exn : unit -> interface_address array
val load_avg : unit -> float * float * float
val ip4_addr : string -> int -> sockaddr uv_result
val ip4_addr_exn : string -> int -> sockaddr
val ip4_name : sockaddr -> string uv_result
val ip4_name_exn : sockaddr -> string
val ip6_addr : string -> int -> sockaddr uv_result
val ip6_addr_exn : string -> int -> sockaddr
val ip6_name : sockaddr -> string uv_result
val ip6_name_exn : sockaddr -> string
val get_total_memory : unit -> int64
val hrtime : unit -> int64
type version = {
  1. major : int;
  2. minor : int;
  3. patch : int;
}
val version : unit -> version
val version_raw : unit -> int
val version_string : unit -> string
val os_homedir : unit -> string uv_result
val os_tmpdir : unit -> string uv_result
val get_passwd : unit -> Unix.passwd_entry uv_result
val exepath : unit -> string uv_result
val cwd : unit -> string uv_result
val chdir : string -> Int_result.unit
val getenv : string -> string uv_result
val putenv : key:string -> data:string -> Int_result.unit
val unsetenv : string -> Int_result.unit
val getppid : unit -> Int_result.int
val set_process_title : string -> Int_result.unit
val get_process_title : unit -> string uv_result
OCaml

Innovation. Community. Security.