Variable: proced-format-alist

proced-format-alist is a customizable variable defined in proced.el.gz.

Value

((short user pid tree pcpu pmem start time (args comm))
 (medium user pid tree pcpu pmem vsize rss ttname state start time
	 (args comm))
 (long user euid group pid tree pri nice pcpu pmem vsize rss ttname
       state start time (args comm))
 (verbose user euid group egid pid ppid tree pgrp sess pri nice pcpu
	  pmem state thcount vsize rss ttname tpgid minflt majflt
	  cminflt cmajflt start time utime stime ctime cutime cstime
	  etime (args comm)))

Documentation

Alist of formats of listing.

The car of each element is a symbol, the name of the format. The cdr is a list of attribute keys appearing in proced-grammar-alist. An element of this list may also be a list of attribute keys that specifies alternatives. If the first attribute is absent for a process, use the second one, etc.

Source Code

;; Defined in /usr/src/emacs/lisp/proced.el.gz
;; Formatting and sorting rules are defined "per attribute".  If formatting
;; and / or sorting should use more than one attribute, it appears more
;; transparent to define a new derived attribute, so that formatting and
;; sorting can use them consistently.  (Are there exceptions to this rule?
;; Would it be advantageous to have yet more general methods available?)
;; Sorting can also be based on attributes that are invisible in the listing.

(defcustom proced-format-alist
  '((short user pid tree pcpu pmem start time (args comm))
    (medium user pid tree pcpu pmem vsize rss ttname state start time (args comm))
    (long user euid group pid tree pri nice pcpu pmem vsize rss ttname state
          start time (args comm))
    (verbose user euid group egid pid ppid tree pgrp sess pri nice pcpu pmem
             state thcount vsize rss ttname tpgid minflt majflt cminflt cmajflt
             start time utime stime ctime cutime cstime etime (args comm)))
  "Alist of formats of listing.
The car of each element is a symbol, the name of the format.
The cdr is a list of attribute keys appearing in `proced-grammar-alist'.
An element of this list may also be a list of attribute keys that specifies
alternatives.  If the first attribute is absent for a process, use the second
one, etc."
  :type '(alist :key-type (symbol :tag "Format Name")
                :value-type (repeat :tag "Keys"
                                    (choice (symbol :tag "")
                                            (repeat :tag "Alternative Keys"
                                                    (symbol :tag ""))))))