2014-09-09 05:19:59 +00:00
|
|
|
table_name("processes")
|
2015-02-07 03:05:50 +00:00
|
|
|
description("All running processes on the host system.")
|
2014-09-09 05:19:59 +00:00
|
|
|
schema([
|
2015-09-23 18:03:24 +00:00
|
|
|
Column("pid", BIGINT, "Process (or thread) ID", index=True),
|
2014-11-21 01:14:14 +00:00
|
|
|
Column("name", TEXT, "The process path or shorthand argv[0]"),
|
2015-02-13 02:05:10 +00:00
|
|
|
Column("path", TEXT, "Path to executed binary"),
|
2014-11-21 01:14:14 +00:00
|
|
|
Column("cmdline", TEXT, "Complete argv"),
|
2015-09-23 18:03:24 +00:00
|
|
|
Column("state", TEXT, "Process state"),
|
2015-02-13 02:05:10 +00:00
|
|
|
Column("cwd", TEXT, "Process current working directory"),
|
|
|
|
Column("root", TEXT, "Process virtual root directory"),
|
|
|
|
Column("uid", BIGINT, "Unsigned user ID"),
|
2015-09-23 18:03:24 +00:00
|
|
|
Column("gid", BIGINT, "Unsigned group ID"),
|
2015-02-13 02:05:10 +00:00
|
|
|
Column("euid", BIGINT, "Unsigned effective user ID"),
|
|
|
|
Column("egid", BIGINT, "Unsigned effective group ID"),
|
2015-11-19 00:44:07 +00:00
|
|
|
Column("suid", BIGINT, "Unsigned saved user ID"),
|
|
|
|
Column("sgid", BIGINT, "Unsigned saved group ID"),
|
2015-08-27 22:47:06 +00:00
|
|
|
Column("on_disk", INTEGER,
|
|
|
|
"The process path exists yes=1, no=0, unknown=-1"),
|
|
|
|
Column("wired_size", BIGINT, "Bytes of unpagable memory used by process"),
|
|
|
|
Column("resident_size", BIGINT, "Bytes of private memory used by process"),
|
2016-08-29 13:56:38 +00:00
|
|
|
Column("total_size", BIGINT, "Total virtual memory size",
|
|
|
|
aliases=["phys_footprint"]),
|
2015-08-27 22:47:06 +00:00
|
|
|
Column("user_time", BIGINT, "CPU time spent in user space"),
|
|
|
|
Column("system_time", BIGINT, "CPU time spent in kernel space"),
|
|
|
|
Column("start_time", BIGINT,
|
|
|
|
"Process start in seconds since boot (non-sleeping)"),
|
2015-09-23 18:03:24 +00:00
|
|
|
Column("parent", BIGINT, "Process parent's PID"),
|
2016-03-20 23:09:18 +00:00
|
|
|
Column("pgroup", BIGINT, "Process group"),
|
2016-08-29 13:56:38 +00:00
|
|
|
Column("threads", INTEGER, "Number of threads used by process"),
|
2015-09-23 18:03:24 +00:00
|
|
|
Column("nice", INTEGER, "Process nice level (-20 to 20, default 0)"),
|
2014-09-09 05:19:59 +00:00
|
|
|
])
|
2014-10-03 23:24:11 +00:00
|
|
|
implementation("system/processes@genProcesses")
|
2015-06-01 22:53:52 +00:00
|
|
|
examples([
|
|
|
|
"select * from processes where pid = 1",
|
|
|
|
])
|