Skip to content
Snippets Groups Projects
Commit 87460033 authored by Felix Weiglhofer's avatar Felix Weiglhofer Committed by Pierre-Alain Loizeau
Browse files

cbmreco: Monitor ts index delta.

parent 89f37969
No related branches found
No related tags found
1 merge request!1257Rebase branch DC_July23
Pipeline #23298 passed
......@@ -170,6 +170,9 @@ void Reco::QueueUnpackerMetrics(const fles::Timeslice& ts, const UnpackMonitorDa
return d.size() > 0 ? static_cast<double>(sizeBytes(d)) / x : 0.0;
};
size_t tsDelta = ts.index() - prevTsId;
prevTsId = ts.index();
auto& stsDigis = digis.fData.fSts.fDigis;
auto& muchDigis = digis.fData.fMuch.fDigis;
auto& tofDigis = digis.fData.fTof.fDigis;
......@@ -185,6 +188,7 @@ void Reco::QueueUnpackerMetrics(const fles::Timeslice& ts, const UnpackMonitorDa
GetMonitor().QueueMetric("cbmreco", {{"hostname", fles::system::current_hostname()}, {"child", Opts().ChildId()}},
{
{"tsIdDelta", tsDelta},
{"unpackTimeTotal", monitor.fTimeUnpack},
{"unpackBytesInSts", monitor.fNumBytesInSts},
{"unpackBytesInMuch", monitor.fNumBytesInMuch},
......
......@@ -41,6 +41,8 @@ namespace cbm::algo
ChainContext fContext;
xpu::timings fTimesliceTimesAcc;
size_t prevTsId = 0;
// STS
UnpackChain fUnpack;
sts::HitfinderChain fStsHitFinder;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment