]> granicus.if.org Git - procps-ng/commit
ps: add -q/q/--quick-pid option
authorJaromir Capik <jcapik@redhat.com>
Thu, 10 Jul 2014 19:14:02 +0000 (21:14 +0200)
committerJaromir Capik <jcapik@redhat.com>
Thu, 10 Jul 2014 19:24:19 +0000 (21:24 +0200)
commite751606fccdeed7ab79fc4324938b3aa47989842
treed1be1d2438046e5f4994af4107285e3475a41b29
parent6cd8691720a470c20b5aace7186a7f1984d82930
ps: add -q/q/--quick-pid option

This commit introduces a new option q/-q/--quick-pid
to the 'ps' command. The option does a similar job
to the p/-p/--pid option (i.e. selection of PIDs
listed in the comma separated list that follows
the option), but the new option is optimized
for speed.
In cases where users only need to specify a list
of PIDs to be shown and don't need other selection
options, forest type output and sorting options,
the new option is recommended as it decreases
the initial processing delay by avoiding reading
the necessary information from all the processes
running on the system and by simplifying
the internal filtering logic.
ps/common.h
ps/display.c
ps/help.c
ps/parser.c
ps/ps.1
ps/select.c