def _get_progress_information_message(self): msg = TerminalReporter._get_progress_information_message(self) if self.verbosity <= 0: return msg if self.config.getoption("--sys-stats") is False: return msg if self.verbosity == 1: msg = " [CPU:{}%] [MEM:{}%]{}".format( psutil.cpu_percent(), psutil.virtual_memory().percent, msg) return msg