Skip to content
Snippets Groups Projects

algo: Annotate Unpack timers to calculate throughput.

Merged Felix Weiglhofer requested to merge fweig/cbmroot:algo-unpack-timers into master
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
+ 3
2
@@ -177,6 +177,7 @@ namespace cbm::algo
genericMonitor.fNumBytes += sizeBytes;
xpu::push_timer("Unpack");
xpu::t_add_bytes(sizeBytes);
#pragma omp parallel for schedule(dynamic)
for (size_t i = 0; i < numMs; i++) {
auto result = algos.at(msEqIds[i])(msContent[i], msDesc[i], ts.start_time());
@@ -185,16 +186,16 @@ namespace cbm::algo
}
xpu::pop_timer();
xpu::push_timer("Resize");
size_t nDigisTotal = 0;
for (const auto& digis : msDigis) {
nDigisTotal += digis.size();
}
xpu::push_timer("Resize");
digisOut.resize(nDigisTotal);
xpu::pop_timer();
xpu::push_timer("Merge");
xpu::t_add_bytes(nDigisTotal * sizeof(Digi));
#pragma omp parallel for schedule(dynamic)
for (unsigned int i = 0; i < numMs; i++) {
unsigned int offset = 0;
Loading