Skip to content

Commit

Permalink
Output max CPU utilization on summarize-benchmark script JSON output …
Browse files Browse the repository at this point in the history
…format
  • Loading branch information
aemous authored Jan 24, 2025
2 parents 136b3c2 + f319087 commit 9a71d52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/performance/benchmark
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions scripts/performance/summarize
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 9a71d52

Please sign in to comment.