Module Line.Ps


module Ps: sig .. end
Line structure for process status information. See ps(1); this corresponds to the auxww option.

val user : < ps : Line.present; .. > Line.t -> string
The user running the process. (accessor, required)
val set_user : string -> (< ps : Line.present; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Ps.user
val pid : < ps : Line.present; .. > Line.t -> int
The process's id. (accessor, required)
val set_pid : int -> (< ps : Line.present; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Ps.pid
val pcpu : < ps : Line.present; .. > Line.t -> float
CPU usage. (accessor, required)
val set_pcpu : float -> (< ps : Line.present; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Ps.pcpu
val pmem : < ps : Line.present; .. > Line.t -> float
Memory usage. (accessor, required)
val set_pmem : float -> (< ps : Line.present; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Ps.pmem
val vsz : < ps : Line.present; .. > Line.t -> int
VM size in KB. (accessor, required)
val set_vsz : int -> (< ps : Line.present; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Ps.vsz
val rss : < ps : Line.present; .. > Line.t -> int
Memory in residence. (accessor, required)
val set_rss : int -> (< ps : Line.present; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Ps.rss
val tt : < ps : Line.present; .. > Line.t -> string
Terminal number of controlling terminal. (accessor, required)
val set_tt : string -> (< ps : Line.present; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Ps.tt
val stat : < ps : Line.present; .. > Line.t -> string
Process status. (accessor, required)
val set_stat : string -> (< ps : Line.present; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Ps.stat
val started : < ps : Line.present; .. > Line.t -> string
Time the process was started. (accessor, required)
val set_started : string -> (< ps : Line.present; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Ps.started
val time : < ps : Line.present; .. > Line.t -> string
Time the process has been running. (accessor, required)
val set_time : string -> (< ps : Line.present; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Ps.time
val command : < ps : Line.present; .. > Line.t -> string
Complete invocation of the process. (accessor, required)
val set_command : string -> (< ps : Line.present; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Ps.command
val create : user:string ->
pid:int ->
pcpu:float ->
pmem:float ->
vsz:int ->
rss:int ->
tt:string ->
stat:string ->
started:string ->
time:string ->
command:string ->
< delim : 'a; fstab : 'b; group : 'c; key_value : 'd; mailcap : 'e;
passwd : 'f; ps : Line.absent; seq : 'g; source : 'h; stat : 'i >
Line.t ->
< delim : 'a; fstab : 'b; group : 'c; key_value : 'd; mailcap : 'e;
passwd : 'f; ps : Line.present; seq : 'g; source : 'h; stat : 'i >
Line.t
Add the Line.Ps substructure to a line.