diff --git a/scripts/performance/benchmark b/scripts/performance/benchmark index d1aa8d7a..ce90320f 100755 --- a/scripts/performance/benchmark +++ b/scripts/performance/benchmark @@ -79,9 +79,9 @@ def run_benchmark(pid, output_file, data_interval): memory_used = process_to_measure.memory_info().rss cpu_percent = process_to_measure.cpu_percent() current_net = psutil.net_io_counters(pernic=True)[INTERFACE] - except psutil.AccessDenied: - # Trying to get process information from a closed process will - # result in AccessDenied. + except (psutil.AccessDenied, psutil.ZombieProcess): + # Trying to get process information from a closed or zombie process will + # result in corresponding exceptions. break # Collect data on the in/out network io. diff --git a/scripts/performance/summarize b/scripts/performance/summarize index dd3abc33..388a81c5 100755 --- a/scripts/performance/summarize +++ b/scripts/performance/summarize @@ -211,6 +211,8 @@ class Summarizer: 'std_dev_max_memory': self.std_dev_max_memory, 'average_memory': self.average_memory, 'std_dev_average_memory': self.std_dev_average_memory, + 'std_dev_max_cpu': self.std_dev_max_cpu, + 'max_cpu': self.max_cpu, 'average_cpu': self.average_cpu, 'std_dev_average_cpu': self.std_dev_average_cpu, },