Introduction
Introduction Statistics Contact Development Disclaimer Help
show the process memory size instead of the tty - plstree - ps and ls displayed…
git clone git://bitreich.org/plstree git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws…
Log
Files
Refs
Tags
README
---
commit fee3d0d90ef36e4d28fbb36251f06dd4e7be492d
parent e3d30e6a69c7376cacf94f5cadc26d9a5655b5b3
Author: Josuah Demangeon <[email protected]>
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(-)
---
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
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.