diff options
author | Giacomo Pozzoni <giacomopoz@gmail.com> | 2020-07-27 12:00:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-27 14:00:28 +0200 |
commit | 36ef487a90d0d14c4da8ce7e19b5916b8b15056c (patch) | |
tree | b1df48db3bd340b47e292f82c4bf7bab4a69a703 /cmake | |
parent | 480dee3125929181b7004810516ea673c61f5811 (diff) |
Core/Metric: Add new cmake option WITH_DETAILED_METRICS to enable more metrics (#25136)
* Core/Metric: Add new cmake option WITH_DETAILED_METRICS to enable more metrics
Add more detailed metrics in World::UpdateSessions().
* Attempt using C++17 features
* Fix cmake typo
Co-authored-by: NoName <322016+Faq@users.noreply.github.com>
* Fix build with WITHOUT_METRICS
* Update Performance profiling dashboard with Update sessions panel
* Add panel to show sessions with update time above 100 ms
* Move legends on the right and add max update time diff in the legend of sessions
Co-authored-by: NoName <322016+Faq@users.noreply.github.com>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/options.cmake | 1 | ||||
-rw-r--r-- | cmake/showoptions.cmake | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/cmake/options.cmake b/cmake/options.cmake index 0d73085b212..8e7031a683a 100644 --- a/cmake/options.cmake +++ b/cmake/options.cmake @@ -50,6 +50,7 @@ option(WITH_WARNINGS "Show all warnings during compile" option(WITH_COREDEBUG "Include additional debug-code in core" 0) option(WITH_STRICT_DATABASE_TYPE_CHECKS "Enable strict checking of database field value accessors" 0) option(WITHOUT_METRICS "Disable metrics reporting (i.e. InfluxDB and Grafana)" 0) +option(WITH_DETAILED_METRICS "Enable detailed metrics reporting (i.e. time each session takes to update)" 0) option(COPY_CONF "Copy authserver and worldserver .conf.dist files to the project dir" 1) set(WITH_SOURCE_TREE "hierarchical" CACHE STRING "Build the source tree for IDE's.") set_property(CACHE WITH_SOURCE_TREE PROPERTY STRINGS no flat hierarchical hierarchical-folders) diff --git a/cmake/showoptions.cmake b/cmake/showoptions.cmake index 45e06b3321e..f9bfa1f33fa 100644 --- a/cmake/showoptions.cmake +++ b/cmake/showoptions.cmake @@ -134,6 +134,11 @@ if(WITHOUT_METRICS) message(" *** WITHOUT_METRICS - WARNING!") message(" *** Please note that this will disable all metrics output (i.e. InfluxDB and Grafana)") add_definitions(-DWITHOUT_METRICS) +elseif (WITH_DETAILED_METRICS) + message("") + message(" *** WITH_DETAILED_METRICS - WARNING!") + message(" *** Please note that this will enable detailed metrics output (i.e. time each session takes to update)") + add_definitions(-DWITH_DETAILED_METRICS) endif() if(WITH_STRICT_DATABASE_TYPE_CHECKS) |