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 :Core.Int63.t; (*The kernel flags word of the process.*)
   minflt :Core.Int63.t; (*The number of minor faults the process has made which have not required loading a memory page from disk.*)
   cminflt :Core.Int63.t; (*The number of minor faults that the process’s waited-for children have made.*)
   majflt :Core.Int63.t; (*The number of major faults the process has made which have required loading a page from disk.*)
   cmajflt :Core.Int63.t; (*The number of major faults that the process’s waited-for children have made.*)
   utime :Core.Int63.t; (*The number of jiffies that this process has been scheduled in user mode.*)
   stime :Core.Int63.t; (*The number of jiffies that this process has been scheduled in kernel mode.*)
   cutime :Core.Int63.t; (*The number of jiffies that this process’s waited-for children have been scheduled in user mode.*)
   cstime :Core.Int63.t; (*The number of jiffies that this process’s waited-for children have been scheduled in kernel mode.*)
   priority :Core.Int63.t; (*The standard nice value, plus fifteen. The value is never negative in the kernel.*)
   nice :Core.Int63.t; (*The nice value ranges from 19 to -19*)
   unused :Core.Int63.t; (*placeholder for removed field*)
   itrealvalue :Core.Int63.t; (*The time in jiffies before the next SIGALRM is sent to the process due to an interval timer.*)
   starttime :Core.Int63.t; (*The time in jiffies the process started after system boot.*)
   vsize :Core.Int63.t; (*Virtual memory size in bytes.*)
   rss :Core.Int63.t; (*Resident Set Size: number of pages the process has in real memory.*)
   rlim :Core.Int63.t; (*Current limit in bytes on the rss of the process.*)
   startcode :Core.Int63.t; (*The address above which program text can run.*)
   endcode :Core.Int63.t; (*The address below which program text can run.*)
   startstack :Core.Int63.t; (*The address of the start of the stack.*)
   kstkesp :Core.Int63.t; (*The current value of esp (stack pointer)*)
   kstkeip :Core.Int63.t; (*The current value of eip (instruction pointer)*)
   signal :Core.Int63.t; (*The bitmap of pending signals.*)
   blocked :Core.Int63.t; (*The bitmap of blocked signals.*)
   sigignore :Core.Int63.t; (*The bitmap of ignored signals.*)
   sigcatch :Core.Int63.t; (*The bitmap of caught signals.*)
   wchan :Core.Int63.t; (*This is the "channel" in which the process is waiting. Address of a system call.*)
   nswap :Core.Int63.t; (*(no longer maintained)*)
   cnswap :Core.Int63.t; (*(no longer maintained)*)
   exit_signal :int; (*Signal sent to parent when we die.*)
   processor :int; (*CPU number last executed on.*)
   rt_priority :Core.Int63.t; (*Real-time scheduling priority.*)
   policy :Core.Int63.t; (*Scheduling policy*)
}
val policy : t -> Core.Int63.t
val rt_priority : t -> Core.Int63.t
val processor : t -> int
val exit_signal : t -> int
val cnswap : t -> Core.Int63.t
val nswap : t -> Core.Int63.t
val wchan : t -> Core.Int63.t
val sigcatch : t -> Core.Int63.t
val sigignore : t -> Core.Int63.t
val blocked : t -> Core.Int63.t
val signal : t -> Core.Int63.t
val kstkeip : t -> Core.Int63.t
val kstkesp : t -> Core.Int63.t
val startstack : t -> Core.Int63.t
val endcode : t -> Core.Int63.t
val startcode : t -> Core.Int63.t
val rlim : t -> Core.Int63.t
val rss : t -> Core.Int63.t
val vsize : t -> Core.Int63.t
val starttime : t -> Core.Int63.t
val itrealvalue : t -> Core.Int63.t
val unused : t -> Core.Int63.t
val nice : t -> Core.Int63.t
val priority : t -> Core.Int63.t
val cstime : t -> Core.Int63.t
val cutime : t -> Core.Int63.t
val stime : t -> Core.Int63.t
val utime : t -> Core.Int63.t
val cmajflt : t -> Core.Int63.t
val majflt : t -> Core.Int63.t
val cminflt : t -> Core.Int63.t
val minflt : t -> Core.Int63.t
val flags : t -> Core.Int63.t
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 of_string : string -> t
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t