jfjoch_lite_perf_test: Report mean processing time per image
This commit is contained in:
@@ -342,3 +342,7 @@ JFJochReceiverService &JFJochReceiverService::Indexing(const IndexingSettings &i
|
||||
ImagePusherStatus JFJochReceiverService::GetImagePusherStatus() const {
|
||||
return image_pusher.GetStatus();
|
||||
}
|
||||
|
||||
MeanProcessingTime JFJochReceiverService::GetMeanProcessingTime() const {
|
||||
return plots.GetMeanProcessingTime();
|
||||
}
|
||||
|
||||
@@ -90,6 +90,8 @@ public:
|
||||
void ClearImageBuffer();
|
||||
|
||||
ImagePusherStatus GetImagePusherStatus() const;
|
||||
|
||||
MeanProcessingTime GetMeanProcessingTime() const;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -199,4 +199,13 @@ int main(int argc, char **argv) {
|
||||
logger.Info("Indexing rate {:.0f}%", output.status.indexing_rate.value() * 100.0);
|
||||
if (output.status.max_receive_delay)
|
||||
logger.Info("Max delay {}", output.status.max_receive_delay.value());
|
||||
|
||||
auto image_mean_time = service.GetMeanProcessingTime();
|
||||
logger.Info("Per-image time: (mean; microseconds): spot finding {:.0f} indexing {:.0f} refinement {:.0f} prediction {:.0f} integration {:.0f} total {:.0f}",
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user