def _create_automaton(self):
self._automaton = linuxautomaton.automaton.Automaton()
self.state = self._automaton.state
+
+ def _filter_process(self, proc):
+ if self._arg_proc_list and proc.comm not in self._arg_proc_list:
+ return False
+ if self._arg_pid_list and proc.pid not in self._arg_pid_list:
+ return False
+ return True
self._reset_total(end)
# Filter predicates
- def _filter_process(self, proc):
- if self._arg_proc_list and proc.comm not in self._arg_proc_list:
- return False
- if self._arg_pid_list and proc.pid not in self._arg_pid_list:
- return False
- return True
-
def _filter_size(self, size):
if size is None:
return True
self._print_results(begin, end)
self._reset_total(end)
- def _filter_process(self, proc):
- if self._arg_proc_list and proc.comm not in self._arg_proc_list:
- return False
- if self._arg_pid_list and proc.pid not in self._arg_pid_list:
- return False
-
- return True
-
def _print_results(self, begin_ns, end_ns):
self._print_date(begin_ns, end_ns)
self._print_per_tid_alloc()
self._print_results(begin, end)
self._reset_total(end)
- def _filter_process(self, proc):
- if self._arg_proc_list and proc.comm not in self._arg_proc_list:
- return False
- if self._arg_pid_list and proc.pid not in self._arg_pid_list:
- return False
-
- return True
-
def _print_results(self, begin_ns, end_ns):
self._print_date(begin_ns, end_ns)
strformat = '{:<38} {:>14} {:>14} {:>14} {:>12} {:>10} {:<14}'