Module Procfs.Process.Stat

module Stat: sig .. end

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