Function: proced-process-tree
proced-process-tree is a byte-compiled function defined in
proced.el.gz.
Signature
(proced-process-tree PROCESS-ALIST)
Documentation
Return process tree for PROCESS-ALIST.
It is an alist of alists where the car of each alist is a parent process and the cdr is a list of child processes according to the ppid attribute of these processes. The process tree inherits the sorting order of PROCESS-ALIST.
Source Code
;; Defined in /usr/src/emacs/lisp/proced.el.gz
(defun proced-process-tree (process-alist)
"Return process tree for PROCESS-ALIST.
It is an alist of alists where the car of each alist is a parent process
and the cdr is a list of child processes according to the ppid attribute
of these processes.
The process tree inherits the sorting order of PROCESS-ALIST."
(let ((proced-temp-alist (proced-children-alist process-alist))
pid-alist proced-process-tree)
(while (setq pid-alist (pop proced-temp-alist))
(push (proced-process-tree-internal pid-alist) proced-process-tree))
(nreverse proced-process-tree)))