PcloudStimBuff,IoUringAssmEngn: add frame assembly perf profiling
We now time the frame assembly sequence.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user