From db5c9867e2ffde3657f53bc155b474c5d46884dd Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sat, 17 Feb 2018 23:29:34 +0100 Subject: Core/Misc: Add PERFORMANCE_PROFILING CMake option Add a new CMake option called PERFORMANCE_PROFILING that should be used only when profiling the performance. This option is unsupported, do not report any issue happening when enabling this option. --- src/common/Metric/Metric.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/common/Metric') diff --git a/src/common/Metric/Metric.h b/src/common/Metric/Metric.h index 3c7ebc5c387..777610fdde3 100644 --- a/src/common/Metric/Metric.h +++ b/src/common/Metric/Metric.h @@ -121,7 +121,10 @@ public: #define sMetric Metric::instance() -#if TRINITY_PLATFORM != TRINITY_PLATFORM_WINDOWS +#ifdef PERFORMANCE_PROFILING +#define TC_METRIC_EVENT(category, title, description) ((void)0) +#define TC_METRIC_VALUE(category, value) ((void)0) +#elif TRINITY_PLATFORM != TRINITY_PLATFORM_WINDOWS #define TC_METRIC_EVENT(category, title, description) \ do { \ if (sMetric->IsEnabled()) \ -- cgit v1.2.3