PcloudStimBuff,IoUringAssmEngn: add frame assembly perf profiling

We now time the frame assembly sequence.
This commit is contained in:
2025-11-20 03:26:43 -04:00
parent 9e64c510cc
commit 9ce1ced92d
3 changed files with 33 additions and 8 deletions
@@ -413,16 +413,17 @@ public:
if (!success) {
std::cerr << __func__ << ": Failed to compact and collate frame" << std::endl;
} else {
std::cout << __func__ << ": Successfully compacted and collated frame" << std::endl;
} else
{
// Print execution durations
auto assemblyDuration = pcloudProducer.ioUringAssemblyEngine.getAssemblyDuration();
auto compactDuration = pcloudProducer.openClCollatingAndMeshingEngine.getCompactKernelDuration();
auto collateDuration = pcloudProducer.openClCollatingAndMeshingEngine.getCollateKernelDuration();
std::cout << __func__ << ": Successfully compacted and collated frame: assemblyDuration=" << assemblyDuration.count()
<< "ms, compactKernelDuration=" << compactDuration.count()
<< "ms, collateKernelDuration=" << collateDuration.count() << "ms" << std::endl;
}
// Print kernel execution durations
auto compactDuration = pcloudProducer.openClCollatingAndMeshingEngine.getCompactKernelDuration();
auto collateDuration = pcloudProducer.openClCollatingAndMeshingEngine.getCollateKernelDuration();
std::cout << __func__ << ": compactKernelDuration=" << compactDuration.count()
<< "ms, collateKernelDuration=" << collateDuration.count() << "ms" << std::endl;
callOriginalCallback();
}
};