From 643cbabac0c0c57312c2ba0affeca2737f7d6b09 Mon Sep 17 00:00:00 2001 From: Pavel Odintsov Date: Sat, 5 Aug 2023 12:45:46 +0100 Subject: [PATCH] Added optional capability to track compilation performance --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e1b4ffea..8d3bf06e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -39,6 +39,10 @@ set(LIB_CPP_KAFKA_INSTALL_PATH "${FASTNETMON_LIBRARIES_GLOBAL_PATH}/cppkafka_0_3 set(LIB_RDKAFKA_INSTALL_PATH "${FASTNETMON_LIBRARIES_GLOBAL_PATH}/rdkafka_1_7_0") set(GTEST_INSTALL_PATH "${FASTNETMON_LIBRARIES_GLOBAL_PATH}/gtest_1_13_0") +# Enable time profiling for compilation phase +# https://stackoverflow.com/questions/5962285/cmake-compilation-statistics-per-transation-unit +# set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CMAKE_COMMAND} -E time") + # -Wunused includes more warnings than -Wall # In order to get a warning about an unused function parameter, you must either specify -Wextra -Wunused (note that -Wall implies -Wunused), or separately specify -Wunused-parameter. # TODO: return -Wunused-parameter and address all warning later, I started it but did not finish as we have too many of them