mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
feat(Core/Metrics): implement real time statistic visualization (#8663)
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "LFGMgr.h"
|
||||
#include "Map.h"
|
||||
#include "MapUpdater.h"
|
||||
#include "Metric.h"
|
||||
|
||||
class UpdateRequest
|
||||
{
|
||||
@@ -39,9 +40,11 @@ public:
|
||||
|
||||
void call() override
|
||||
{
|
||||
METRIC_TIMER("map_update_time_diff", METRIC_TAG("map_id", std::to_string(m_map.GetId())));
|
||||
m_map.Update(m_diff, s_diff);
|
||||
m_updater.update_finished();
|
||||
}
|
||||
|
||||
private:
|
||||
Map& m_map;
|
||||
MapUpdater& m_updater;
|
||||
|
||||
Reference in New Issue
Block a user