module Stat:sig..end
type t = {
|
comm : |
(* | The filename of the executable | *) |
|
state : |
(* | One character from the string "RSDZTW" | *) |
|
ppid : |
(* | The PID of the parent. | *) |
|
pgrp : |
(* | The process group ID of the process. | *) |
|
session : |
(* | The session ID of the process. | *) |
|
tty_nr : |
(* | The tty the process uses. | *) |
|
tpgid : |
(* | The process group ID of the process which currently owns the tty... | *) |
|
flags : |
(* | The kernel flags word of the process. | *) |
|
minflt : |
(* | The number of minor faults the process has made which have not required loading a memory page from disk. | *) |
|
cminflt : |
(* | The number of minor faults that the process’s waited-for children have made. | *) |
|
majflt : |
(* | The number of major faults the process has made which have required loading a page from disk. | *) |
|
cmajflt : |
(* | The number of major faults that the process’s waited-for children have made. | *) |
|
utime : |
(* | The number of jiffies that this process has been scheduled in user mode. | *) |
|
stime : |
(* | The number of jiffies that this process has been scheduled in kernel mode. | *) |
|
cutime : |
(* | The number of jiffies that this process’s waited-for children have been scheduled in user mode. | *) |
|
cstime : |
(* | The number of jiffies that this process’s waited-for children have been scheduled in kernel mode. | *) |
|
priority : |
(* | The standard nice value, plus fifteen. The value is never negative in the kernel. | *) |
|
nice : |
(* | The nice value ranges from 19 to -19 | *) |
|
unused : |
(* | placeholder for removed field | *) |
|
itrealvalue : |
(* | The time in jiffies before the next SIGALRM is sent to the process due to an interval timer. | *) |
|
starttime : |
(* | The time in jiffies the process started after system boot. | *) |
|
vsize : |
(* | Virtual memory size in bytes. | *) |
|
rss : |
(* | Resident Set Size: number of pages the process has in real memory. | *) |
|
rlim : |
(* | Current limit in bytes on the rss of the process. | *) |
|
startcode : |
(* | The address above which program text can run. | *) |
|
endcode : |
(* | The address below which program text can run. | *) |
|
startstack : |
(* | The address of the start of the stack. | *) |
|
kstkesp : |
(* | The current value of esp (stack pointer) | *) |
|
kstkeip : |
(* | The current value of eip (instruction pointer) | *) |
|
signal : |
(* | The bitmap of pending signals. | *) |
|
blocked : |
(* | The bitmap of blocked signals. | *) |
|
sigignore : |
(* | The bitmap of ignored signals. | *) |
|
sigcatch : |
(* | The bitmap of caught signals. | *) |
|
wchan : |
(* | This is the "channel" in which the process is waiting. Address of a system call. | *) |
|
nswap : |
(* | (no longer maintained) | *) |
|
cnswap : |
(* | (no longer maintained) | *) |
|
exit_signal : |
(* | Signal sent to parent when we die. | *) |
|
processor : |
(* | CPU number last executed on. | *) |
|
rt_priority : |
(* | Real-time scheduling priority. | *) |
|
policy : |
(* | Scheduling policy | *) |
val policy : t -> Procfs.bigintval rt_priority : t -> Procfs.bigintval processor : t -> intval exit_signal : t -> intval cnswap : t -> Procfs.bigintval nswap : t -> Procfs.bigintval wchan : t -> Procfs.bigintval sigcatch : t -> Procfs.bigintval sigignore : t -> Procfs.bigintval blocked : t -> Procfs.bigintval signal : t -> Procfs.bigintval kstkeip : t -> Procfs.bigintval kstkesp : t -> Procfs.bigintval startstack : t -> Procfs.bigintval endcode : t -> Procfs.bigintval startcode : t -> Procfs.bigintval rlim : t -> Procfs.bigintval rss : t -> Procfs.bigintval vsize : t -> Procfs.bigintval starttime : t -> Procfs.bigintval itrealvalue : t -> Procfs.bigintval unused : t -> Procfs.bigintval nice : t -> Procfs.bigintval priority : t -> Procfs.bigintval cstime : t -> Procfs.bigintval cutime : t -> Procfs.bigintval stime : t -> Procfs.bigintval utime : t -> Procfs.bigintval cmajflt : t -> Procfs.bigintval majflt : t -> Procfs.bigintval cminflt : t -> Procfs.bigintval minflt : t -> Procfs.bigintval flags : t -> Procfs.bigintval tpgid : t -> intval tty_nr : t -> intval session : t -> intval pgrp : t -> Core.Std.Pid.t optionval ppid : t -> Core.Std.Pid.t optionval state : t -> charval comm : t -> stringmodule Fields:sig..end
val extract_command : string -> [ `command of string ] * [ `rest of string ]val of_string : string -> tval t_of_sexp : Sexplib.Sexp.t -> tval sexp_of_t : t -> Sexplib.Sexp.t