pub struct WatchCommand {
pub target: Vec<String>,
pub interval: f64,
pub in_dir: Option<String>,
pub by_name: Option<String>,
pub cmd: bool,
pub min_cpu: Option<f32>,
pub min_mem: Option<f64>,
pub json: bool,
pub verbose: bool,
pub wide: bool,
pub limit: Option<usize>,
pub sort: WatchSortKey,
}Expand description
Watch processes in real-time
Fields§
§target: Vec<String>Target(s): PID, :port, or name (separate arguments for several; omit for all processes)
interval: f64Refresh interval in seconds (at least 0.1)
in_dir: Option<String>Filter by directory; takes the next word as the directory unless it starts with ‘-’ (bare –in is the current directory, –in=DIR is explicit)
by_name: Option<String>Filter by process name
cmd: boolMatch name targets and –by as a substring of the process name or full command line (like pkill -f)
min_cpu: Option<f32>Only show processes using more than this CPU %
min_mem: Option<f64>Only show processes using more than this memory (MB)
json: boolOutput as JSON (newline-delimited, one object per refresh)
verbose: boolShow verbose output
wide: boolPrint full directories and arguments instead of fitting the terminal width
limit: Option<usize>Limit the number of results shown
sort: WatchSortKeySort by: cpu, mem (biggest first); pid, name (ascending). Ties come by PID
Implementations§
Trait Implementations§
Source§impl Args for WatchCommand
impl Args for WatchCommand
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for WatchCommand
impl Debug for WatchCommand
Source§impl FromArgMatches for WatchCommand
impl FromArgMatches for WatchCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.