You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many times I want to basically do ps -ef | grep foo and get a specific foo's pid. However, sometimes foo actually spawns a million child processes, and I really only care about some specific ones where "some" might be the primary parent process, but might also be a subset of child processes. So, two features:
when run with some keywords to search, only show processes whose parent does not match those keywords. For example:
% procs -t Edge
PID User │ TTY CPU MEM CPU Time │ Command >
│ [%] [%] │ >
├┬──── 11101 vladimir │ 0.0 1.1 00:00:07 │ /Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge >
│├──── 11109 vladimir │ 0.0 0.3 00:00:07 │ /Applications/Microsoft Edge.app/Contents/Frameworks/Microsoft Edge Framework.framework/Versions/112.0.1>
│├──── 11110 vladimir │ 0.0 0.3 00:00:02 │ /Applications/Microsoft Edge.app/Contents/Frameworks/Microsoft Edge Framework.framework/Versions/112.0.1>
│├──── 11112 vladimir │ 0.0 0.1 00:00:00 │ /Applications/Microsoft Edge.app/Contents/Frameworks/Microsoft Edge Framework.framework/Versions/112.0.1>
│├──── 11123 vladimir │ 0.0 0.1 00:00:00 │ /Applications/Microsoft Edge.app/Contents/Frameworks/Microsoft Edge Framework.framework/Versions/112.0.1>
│├──── 11127 vladimir │ 0.0 0.2 00:00:00 │ /Applications/Microsoft Edge.app/Contents/Frameworks/Microsoft Edge Framework.framework/Versions/112.0.1>
...
└───── 11103 vladimir │ 0.0 0.0 00:00:00 │ /Applications/Microsoft Edge.app/Contents/Frameworks/Microsoft Edge Framework.framework/Versions/112.0.1722.34/Helpers/msedge_crashpad_handler --monitor-self-annotation=ptype=crashpad-handler --database=/Users/vladimir/Library/Application Support/Microsoft Edge/Crashpad --annotation=IsOfficialBuild=1 --annotation=channel= --annotation=exe=Microsoft Edge --annotation=plat=OS X --annotation=prod=Microsoft Edge_Mac --annotation=ver=112.0.1722.34 --handshake-fd=5
with the new option, should only show process 11101 and 11103 (because 11103 is not a child of 11101, unlike all the other framework processes).
a --exclude that takes a regexp argument, that filters out processes whose command lines match the regex. In the above example, adding --filter-out handshake-fd would also filter out process 11103, because it contains "handshake-fd".
While we're at it, could make the default keyword search a regex as well!
The text was updated successfully, but these errors were encountered:
@vvuk Nice feature request. I came here looking for help on simple fixed string exclusion, which I think is possible in the current version 0.14. For example, to list bash but not -bash. Do you know if this is possible?
Many times I want to basically do
ps -ef | grep foo
and get a specific foo's pid. However, sometimes foo actually spawns a million child processes, and I really only care about some specific ones where "some" might be the primary parent process, but might also be a subset of child processes. So, two features:with the new option, should only show process 11101 and 11103 (because 11103 is not a child of 11101, unlike all the other framework processes).
--exclude
that takes a regexp argument, that filters out processes whose command lines match the regex. In the above example, adding--filter-out handshake-fd
would also filter out process 11103, because it contains "handshake-fd".While we're at it, could make the default keyword search a regex as well!
The text was updated successfully, but these errors were encountered: