From 40e38d0cd9ed0c8913a6727f5761be5fba7c1c4b Mon Sep 17 00:00:00 2001 From: Vedant Date: Thu, 15 Aug 2024 15:22:54 +0530 Subject: [PATCH] Scaling down perftest plot images, so that it is displayed entirely on CDash, and added them to the build artifacts Signed-off-by: Vedant --- .jenkins/lsu-perftests/batch.sh | 1 + tools/perftests_plot.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.jenkins/lsu-perftests/batch.sh b/.jenkins/lsu-perftests/batch.sh index 751b0012f66..409fddbd7a8 100755 --- a/.jenkins/lsu-perftests/batch.sh +++ b/.jenkins/lsu-perftests/batch.sh @@ -17,6 +17,7 @@ status_computation_and_artifacts_storage() { # Copy the testing directory for saving as an artifact cp -r ${build_dir}/Testing ${src_dir}/${configuration_name}-Testing cp -r ${build_dir}/*.json ${src_dir}/${configuration_name}-reports + cp -r ${build_dir}/*.png ${src_dir}/${configuration_name}-reports echo "${ctest_status}" > "jenkins-hpx-${configuration_name}-ctest-status.txt" diff --git a/tools/perftests_plot.py b/tools/perftests_plot.py index 07724df7cc8..096bcd14498 100755 --- a/tools/perftests_plot.py +++ b/tools/perftests_plot.py @@ -34,7 +34,7 @@ def mean_statistic(sample1, sample2, axis=-1): header_flag = True n = ceil(len(json_obj1["outputs"]) / 2) - fig, ax = plt.subplots(n, 2, figsize=(25, 4 * n), sharey=False) + fig, ax = plt.subplots(n, 2, figsize=(16, 3 * n), sharey=False) plt.subplots_adjust(hspace=0.3) i = 0 for test1, test2 in zip(json_obj1["outputs"], json_obj2["outputs"]): @@ -90,5 +90,5 @@ def mean_statistic(sample1, sample2, axis=-1): plt.tight_layout() [fig.delaxes(a) for a in ax.flatten() if not a.has_data()] - plt.savefig(sys.argv[3] + ".png") + plt.savefig(sys.argv[3] + ".png", dpi=150) \ No newline at end of file