From 7da0847cc79d1924e00528964fcd899cc9d024d8 Mon Sep 17 00:00:00 2001 From: leonarski_f Date: Sat, 25 Apr 2026 08:02:17 +0200 Subject: [PATCH] jfjoch_broker: Print per-frame mean analysis to the log --- broker/JFJochStateMachine.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/broker/JFJochStateMachine.cpp b/broker/JFJochStateMachine.cpp index c3bcce51..d853ce64 100644 --- a/broker/JFJochStateMachine.cpp +++ b/broker/JFJochStateMachine.cpp @@ -394,6 +394,18 @@ void JFJochStateMachine::MeasurementThread() { std::unique_lock ul(m); scan_result = tmp_output.receiver_output.scan_result; + auto image_mean_time = tmp_output.receiver_output.processing_time; + logger.Info("Per-image processing time: (mean; microseconds): decompress {:.0f} preprocess {:.0f} azint {:.0f} spot finding {:.0f} indexing {:.0f} refinement {:.0f} prediction {:.0f} integration {:.0f} total {:.0f}", + image_mean_time.compression * 1e6, + image_mean_time.preprocessing * 1e6, + image_mean_time.azint * 1e6, + image_mean_time.spot_finding * 1e6, + image_mean_time.indexing * 1e6, + image_mean_time.refinement * 1e6, + image_mean_time.bragg_prediction * 1e6, + image_mean_time.integration * 1e6, + image_mean_time.processing * 1e6); + if (tmp_output.receiver_output.writer_queue_full_warning) SetState(JFJochState::Idle, "Stream receiver (writer or downstream analysis) cannot cope with data; reduce frame rate",