Buffer utilitzation metrics for CommandableFragmentGenerator
CommandableFragmentGenerator should have metrics analogous to those in SharedMemoryEventManager which report the current utilization of buffer space. Since CFG's buffer can be measured in both Fragments and Bytes, both should be reported alongside a single metric which reports which one is closer to full.
#2 Updated by John Freeman 25 days ago
- % Done changed from 0 to 100
- Status changed from Assigned to Reviewed
I've confirmed that the expected metrics get published. Take run 3006 which used the head of the feature branch (mu2edaq01:/home/jcfree/run_records/3006). If I grep on one of the metric files from run 3006:
grep "Fragment Generator Buffer Full" ~jcfree/daqlogs/metrics/boardreader/br_13446_metrics.log
then I see the expected metrics.
One small quibble about the code. After I merged develop into feature/22680_CFG_BufferUsageMetrics (commit 03c17d007c9bb5105f8f769650db67a8dc57d62a) I noticed that one line that was different from develop was the following:
- metricMan->sendMetric("Last Timestamp", timestamp, "Ticks", 1, - MetricMode::LastPoint, app_name); + metricMan->sendMetric("Last Timestamp", timestamp, "Ticks", 1, MetricMode::LastPoint);
...and I'm not sure if this is what we want.