diff options
author | Giacomo Pozzoni <giacomopoz@gmail.com> | 2020-07-17 22:52:01 +0000 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-01-23 21:36:28 +0100 |
commit | 8834c5c72447f7b8147ec34a4cb12e28c8906e90 (patch) | |
tree | 6559326e2ccedb2ce37d6248f7199525dc85108f /src/server/game/Maps/MapUpdater.cpp | |
parent | d11c3807b32d51e48ed4557972a627f6366956d9 (diff) |
Core/Metric: Log Map::Update() times (#25067)
* Core/Metric: Log Map::Update() times
* Add more performant version to reduce allocations when metrics are disabled
* Linux build fix
* Add metric stopwatch version that doesnt let users forget to _END it
* Fix linux build
* Code cleanup
* Add Map updates panel to General dashboard
* Add "Recent events" panel to General dashboard
* Apply latest codestyle changes
Co-authored-by: Shauren <shauren.trinity@gmail.com>
(cherry picked from commit 5eb742ee6a892b684b0c4cbde9f02f838b8300e5)
Diffstat (limited to 'src/server/game/Maps/MapUpdater.cpp')
-rw-r--r-- | src/server/game/Maps/MapUpdater.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/game/Maps/MapUpdater.cpp b/src/server/game/Maps/MapUpdater.cpp index 4a3a6c3cd02..9b0b42ee679 100644 --- a/src/server/game/Maps/MapUpdater.cpp +++ b/src/server/game/Maps/MapUpdater.cpp @@ -17,6 +17,7 @@ #include "MapUpdater.h" #include "Map.h" +#include "Metric.h" #include <mutex> @@ -38,6 +39,7 @@ class MapUpdateRequest void call() { + TC_METRIC_TIMER("map_update_time_diff", TC_METRIC_TAG("map_id", std::to_string(m_map.GetId()))); m_map.Update (m_diff); m_updater.update_finished(); } |