From f2457cf09ead987d14fdba94727659943810628b Mon Sep 17 00:00:00 2001 From: Stephen Fegan Date: Fri, 4 Oct 2024 17:00:57 +0200 Subject: [PATCH] Add remainder of config items for reference --- proto/diagnostics/clock_regression.proto | 5 ++++- src/diagnostics/clock_regression.cpp | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/proto/diagnostics/clock_regression.proto b/proto/diagnostics/clock_regression.proto index 31c9f672..d734d4be 100644 --- a/proto/diagnostics/clock_regression.proto +++ b/proto/diagnostics/clock_regression.proto @@ -102,7 +102,10 @@ message ClockRegressionParameters { message SingleClockRegressionResults { string clock_name = 1; int32 clock_id = 2; - map bins = 3; + ClockPartitionMode partition_mode = 3; + int64 partition_bin_size = 4; + int64 principal_clock_divisor = 5; + map bins = 6; }; message ModuleClockRegressionResults { diff --git a/src/diagnostics/clock_regression.cpp b/src/diagnostics/clock_regression.cpp index 5001fe09..d3e5c939 100644 --- a/src/diagnostics/clock_regression.cpp +++ b/src/diagnostics/clock_regression.cpp @@ -376,6 +376,9 @@ void ClockRegressionParallelEventVisitor::transfer_clock_results( { res->set_clock_name(ct.config.clock_name()); res->set_clock_id(ct.config.clock_id()); + res->set_partition_mode(ct.config.partition_mode()); + res->set_partition_bin_size(ct.config.partition_bin_size()); + res->set_principal_clock_divisor(ct.config.principal_clock_divisor()); for(const auto& ibin : ct.bins) { const auto* reg = &ibin.second->accumulator();