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
@@ -45,6 +45,9 @@ public:
static bool compactionIsNeeded(uint32_t nSucceeded, uint32_t nTotal)
{ return nSucceeded != 0 && nTotal != 0 && nSucceeded != nTotal; }
// Get assembly execution duration in milliseconds
std::chrono::milliseconds getAssemblyDuration() const;
private:
typedef std::function<void(void*, int)> resetAndAssembleFrameCbFn;
void resetAndAssembleFrame(resetAndAssembleFrameCbFn onCqeReady);
@@ -94,6 +97,10 @@ private:
std::random_device randomDevice;
std::mt19937 randomGenerator;
// Timestamp tracking for assembly execution
std::chrono::high_resolution_clock::time_point assemblyStartTime;
std::chrono::high_resolution_clock::time_point assemblyEndTime;
void fillUnAssembledSlotsWithDummyDgrams();
void randomDummySlotFiller(AsynchronousLoop& loop);
void onEventfdRead(