aboutsummaryrefslogtreecommitdiff
path: root/cmake/showoptions.cmake
diff options
context:
space:
mode:
authorGiacomo Pozzoni <giacomopoz@gmail.com>2020-07-23 22:30:16 +0000
committerGitHub <noreply@github.com>2020-07-24 00:30:16 +0200
commit3c0ac7302f902d1811d2c215217a3d701f8b5b19 (patch)
tree0b9614483e35bdaff8f139976ee4272544e5b7d9 /cmake/showoptions.cmake
parent880a7363faa2e0b3f91f3beddd83a31d30c4b5cb (diff)
Core/Metric: Add more metrics about World::Update() loop (#25098)
* Core/Metric: Add more metrics about World::Update() loop * Add new Performance profiling grafana dashboard * Add new cmake setting WITHOUT_METRICS that disables all metrics As new metrics are added, someone might want to disable them if unused. * Add more metrics about World::Update() loop * Remove old performance profiling features Remove "server set difftime" command, "-RecordUpdateTimeDiffInterval" and "MinRecordUpdateTimeDiff" worldserver config settings and their related code. The whole UpdateTime class could be removed too. * Update and rename 2020_07_99_99_world.sql to 2020_07_24_00_world.sql
Diffstat (limited to 'cmake/showoptions.cmake')
-rw-r--r--cmake/showoptions.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/showoptions.cmake b/cmake/showoptions.cmake
index bb027903037..9d4678335f0 100644
--- a/cmake/showoptions.cmake
+++ b/cmake/showoptions.cmake
@@ -123,6 +123,13 @@ if(PERFORMANCE_PROFILING)
add_definitions(-DPERFORMANCE_PROFILING)
endif()
+if(WITHOUT_METRICS)
+ message("")
+ message(" *** WITHOUT_METRICS - WARNING!")
+ message(" *** Please note that this will disable all metrics output (i.e. InfluxDB and Grafana)")
+ add_definitions(-DWITHOUT_METRICS)
+endif()
+
if(WITH_STRICT_DATABASE_TYPE_CHECKS)
message("")
message(" *** WITH_STRICT_DATABASE_TYPE_CHECKS - WARNING!")