AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "UpdateTime.h"
Public Member Functions | |
uint32 | GetAverageUpdateTime () const |
uint32 | GetTimeWeightedAverageUpdateTime () const |
uint32 | GetMaxUpdateTime () const |
uint32 | GetMaxUpdateTimeOfCurrentTable () const |
uint32 | GetLastUpdateTime () const |
uint32 | GetDatasetSize () const |
uint32 | GetPercentile (uint8 p) |
void | UpdateWithDiff (uint32 diff) |
void | RecordUpdateTimeReset () |
Protected Member Functions | |
UpdateTime () | |
void | SortUpdateTimeDataTable () |
Private Types | |
using | DiffTableArray = std::array< uint32, AVG_DIFF_COUNT > |
|
private |
|
protected |
References _averageUpdateTime, _maxUpdateTime, _maxUpdateTimeOfCurrentTable, _maxUpdateTimeOfLastTable, _totalUpdateTime, _updateTimeDataTable, and _updateTimeTableIndex.
uint32 UpdateTime::GetAverageUpdateTime | ( | ) | const |
References _averageUpdateTime.
Referenced by server_commandscript::HandleServerInfoCommand(), and WorldUpdateTime::RecordUpdateTime().
uint32 UpdateTime::GetDatasetSize | ( | ) | const |
References _orderedUpdateTimeDataTable, _updateTimeDataTable, and _updateTimeTableIndex.
Referenced by GetPercentile(), server_commandscript::HandleServerInfoCommand(), and WorldUpdateTime::RecordUpdateTime().
uint32 UpdateTime::GetLastUpdateTime | ( | ) | const |
References _updateTimeDataTable, and _updateTimeTableIndex.
Referenced by server_commandscript::HandleServerInfoCommand(), and WorldUpdateTime::RecordUpdateTime().
uint32 UpdateTime::GetMaxUpdateTime | ( | ) | const |
References _maxUpdateTime.
uint32 UpdateTime::GetMaxUpdateTimeOfCurrentTable | ( | ) | const |
References _maxUpdateTimeOfCurrentTable, and _maxUpdateTimeOfLastTable.
References _needsReorder, _orderedUpdateTimeDataTable, GetDatasetSize(), and SortUpdateTimeDataTable().
Referenced by server_commandscript::HandleServerInfoCommand(), and WorldUpdateTime::RecordUpdateTime().
uint32 UpdateTime::GetTimeWeightedAverageUpdateTime | ( | ) | const |
References _updateTimeDataTable.
void UpdateTime::RecordUpdateTimeReset | ( | ) |
References _recordedTime, and GetTimeMS().
|
protected |
References _needsReorder, _orderedUpdateTimeDataTable, _updateTimeDataTable, and _updateTimeTableIndex.
Referenced by GetPercentile().
void UpdateTime::UpdateWithDiff | ( | uint32 | diff | ) |
References _averageUpdateTime, _maxUpdateTime, _maxUpdateTimeOfCurrentTable, _maxUpdateTimeOfLastTable, _needsReorder, _totalUpdateTime, _updateTimeDataTable, and _updateTimeTableIndex.
Referenced by World::Update().
|
private |
Referenced by GetAverageUpdateTime(), UpdateTime(), and UpdateWithDiff().
|
private |
Referenced by GetMaxUpdateTime(), UpdateTime(), and UpdateWithDiff().
|
private |
Referenced by GetMaxUpdateTimeOfCurrentTable(), UpdateTime(), and UpdateWithDiff().
|
private |
Referenced by GetMaxUpdateTimeOfCurrentTable(), UpdateTime(), and UpdateWithDiff().
|
private |
Referenced by GetPercentile(), SortUpdateTimeDataTable(), and UpdateWithDiff().
|
private |
Referenced by GetDatasetSize(), GetPercentile(), and SortUpdateTimeDataTable().
|
private |
Referenced by RecordUpdateTimeReset().
|
private |
Referenced by UpdateTime(), and UpdateWithDiff().
|
private |
|
private |
Referenced by GetDatasetSize(), GetLastUpdateTime(), SortUpdateTimeDataTable(), UpdateTime(), and UpdateWithDiff().