feat(Core/UpdateTime): Improve diff time measurement. (#18387)

* feat(Core/UpdateTime): Improve diff time measurement.

* Codestyle fixes
This commit is contained in:
Anton Popovichenko
2024-02-25 16:08:15 +01:00
committed by GitHub
parent 1768e4a633
commit 34598bfccf
3 changed files with 66 additions and 2 deletions

View File

@@ -35,6 +35,8 @@ public:
uint32 GetMaxUpdateTime() const;
uint32 GetMaxUpdateTimeOfCurrentTable() const;
uint32 GetLastUpdateTime() const;
uint32 GetDatasetSize() const;
uint32 GetPercentile(uint8 p);
void UpdateWithDiff(uint32 diff);
@@ -43,6 +45,8 @@ public:
protected:
UpdateTime();
void SortUpdateTimeDataTable();
private:
DiffTableArray _updateTimeDataTable;
uint32 _averageUpdateTime;
@@ -52,6 +56,9 @@ private:
uint32 _maxUpdateTimeOfLastTable;
uint32 _maxUpdateTimeOfCurrentTable;
DiffTableArray _orderedUpdateTimeDataTable;
bool _needsReorder;
Milliseconds _recordedTime;
};