show the process memory size instead of the tty - plstree - ps and ls displayed as a tree
(HTM) git clone git://bitreich.org/plstree git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/plstree
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit fee3d0d90ef36e4d28fbb36251f06dd4e7be492d
(DIR) parent e3d30e6a69c7376cacf94f5cadc26d9a5655b5b3
(HTM) Author: Josuah Demangeon <mail@josuah.net>
Date: Sat, 9 Jun 2018 22:50:08 +0200
show the process memory size instead of the tty
The associated tty is specific for terminal interaciton so have been
removed.
Instead, the process memory size is added: this helps to have an
estimation of a whole process tree: if software are forking or start
other programs, it helps to have the memory footprint of _all_ of them
instead of just one.
Diffstat:
M ptree | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/ptree b/ptree
@@ -47,7 +47,7 @@ BEGIN {
function list(entries)
{
- opt = "-o ppid,user,tty,pid,stat,comm,args"
+ opt = "-o ppid,user,vsz,pid,stat,comm,args"
cmd = "exec ps -ax " opt " 2>/dev/null";
if (!(cmd | getline)) {
cmd = "exec ps " opt