version 1.0.0-rc.26
This commit is contained in:
+11
-6
@@ -9,8 +9,9 @@ StreamWriter::StreamWriter(Logger &in_logger,
|
||||
const std::string &zmq_addr,
|
||||
const std::string &repub_address,
|
||||
const std::string &in_file_done_address,
|
||||
const std::optional<int32_t> receive_watermark)
|
||||
: image_puller(repub_address, receive_watermark),
|
||||
const std::optional<int32_t> &rcv_watermark,
|
||||
const std::optional<int32_t> &repub_watermark)
|
||||
: image_puller(repub_address, rcv_watermark, repub_watermark),
|
||||
logger(in_logger),
|
||||
file_done_address(in_file_done_address),
|
||||
socket_number(0),
|
||||
@@ -115,9 +116,12 @@ StreamWriterOutput StreamWriter::Run() {
|
||||
logger.ErrorException(e);
|
||||
}
|
||||
|
||||
ret.image_puller_stats = GetStatistics();
|
||||
logger.Info("Write task done. Images = {} Throughput = {:.0f} MB/s Frame rate = {:.0f} Hz",
|
||||
ret.image_puller_stats.processed_images, ret.image_puller_stats.performance_MBs, ret.image_puller_stats.performance_Hz);
|
||||
ret.stats = GetStatistics();
|
||||
logger.Info("Write task done. Images = {} Throughput = {:.0f} MB/s Frame rate = {:.0f} Hz max occupation of queues (C/O/R) {}/{}/{}",
|
||||
ret.stats.processed_images, ret.stats.performance_MBs, ret.stats.performance_Hz,
|
||||
ret.stats.puller_stats.cbor_fifo_max_util,
|
||||
ret.stats.puller_stats.outside_fifo_max_util,
|
||||
ret.stats.puller_stats.repub_fifo_max_util);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -154,7 +158,8 @@ StreamWriterStatistics StreamWriter::GetStatistics() const {
|
||||
.run_name = run_name,
|
||||
.run_number = run_number,
|
||||
.socket_number = socket_number,
|
||||
.state = state
|
||||
.state = state,
|
||||
.puller_stats = image_puller.GetStatistics()
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user