diff --git a/performance_analysis/plot_from_tapper_logs.py b/performance_analysis/plot_from_tapper_logs.py index 8146661d4..0d0dfc28b 100644 --- a/performance_analysis/plot_from_tapper_logs.py +++ b/performance_analysis/plot_from_tapper_logs.py @@ -1,5 +1,6 @@ import matplotlib.pyplot as plt import numpy as np +import os import pandas as pd import pathlib import re @@ -142,6 +143,7 @@ if __name__ == '__main__': goroutines_samples_df = pd.concat(goroutines_samples_all_files, axis=1) group_pattern = r'(\d+)[\w-]*\.\w+$' + plt.subplots(constrained_layout=True) cpu_plot = plt.subplot(8, 2, 1) plot(cpu_plot, cpu_samples_df, 'cpu', '', 'cpu (%)', group_pattern)