From 36ef487a90d0d14c4da8ce7e19b5916b8b15056c Mon Sep 17 00:00:00 2001 From: Giacomo Pozzoni Date: Mon, 27 Jul 2020 12:00:28 +0000 Subject: 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> --- cmake/showoptions.cmake | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmake/showoptions.cmake') 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) -- cgit v1.2.3