From bb8996efd0b15e0039a64c211771b31d68c88408 Mon Sep 17 00:00:00 2001 From: Guillume DIDIER Date: Mon, 13 Apr 2020 11:16:46 +0200 Subject: [PATCH] Add analysis python script This script currently just parses the CSV. Future update should include plotting various metrics. --- .idea/DendrobatesTinctoriusAzureus.iml | 6 ++++++ .../results-2020-04-07-5c025fb/analyse_csv.py | 14 ++++++++++++++ cache_utils/src/calibration.rs | 4 +++- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 cache_utils/results-2020-04-07-5c025fb/analyse_csv.py diff --git a/.idea/DendrobatesTinctoriusAzureus.iml b/.idea/DendrobatesTinctoriusAzureus.iml index d8e0190..da99253 100644 --- a/.idea/DendrobatesTinctoriusAzureus.iml +++ b/.idea/DendrobatesTinctoriusAzureus.iml @@ -1,5 +1,10 @@ + + + + + @@ -34,5 +39,6 @@ + \ No newline at end of file diff --git a/cache_utils/results-2020-04-07-5c025fb/analyse_csv.py b/cache_utils/results-2020-04-07-5c025fb/analyse_csv.py new file mode 100644 index 0000000..ea6415f --- /dev/null +++ b/cache_utils/results-2020-04-07-5c025fb/analyse_csv.py @@ -0,0 +1,14 @@ +import pandas + +columns = ["Addr", "Hash"] +core_number = 8 # FIXME +for i in range(0, core_number): + for stat in ["Min", "Med", "Max"]: + for op in ["Hit", "Miss"]: + columns.append(op + str(i) + stat) +columns.append("Hmm") +df = pandas.read_csv("citron-vert/combined.csv", header=0, names=columns) +selected_columns = columns[:-1] +df = df[selected_columns] +print(df.head()) + diff --git a/cache_utils/src/calibration.rs b/cache_utils/src/calibration.rs index c286d7c..c3590eb 100644 --- a/cache_utils/src/calibration.rs +++ b/cache_utils/src/calibration.rs @@ -1,3 +1,5 @@ +#![allow(clippy::missing_safety_doc)] + use crate::{flush, maccess, rdtsc_fence}; use core::arch::x86_64 as arch_x86; @@ -337,7 +339,7 @@ fn calibrate_impl( ); } println!( - "CSV: {:p}; {:x}, {}, {}, {}", + "CSV: {:p}, {:x}, {}, {}, {}", pointer, hash, calibrate_result.min.iter().format(", "),