From e430a4088470fe676095de5af4f2dd0671c62051 Mon Sep 17 00:00:00 2001 From: KjellKod Date: Wed, 13 Nov 2013 01:19:33 -0700 Subject: [PATCH] printout if dynamic level is enabled or not --- g2log/test_performance/main_threaded_mean.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/g2log/test_performance/main_threaded_mean.cpp b/g2log/test_performance/main_threaded_mean.cpp index 3c02fdd..67ee263 100644 --- a/g2log/test_performance/main_threaded_mean.cpp +++ b/g2log/test_performance/main_threaded_mean.cpp @@ -7,6 +7,7 @@ // through CMakeLists.txt #define of GOOGLE_GLOG_PERFORMANCE and G2LOG_PERFORMANCE #include "performance.h" #include +#include #if defined(G2LOG_PERFORMANCE) const std::string title = "G2LOG"; @@ -25,6 +26,12 @@ using namespace g2_test; int main(int argc, char** argv) { +#ifdef G2_DYNAMIC_LOGGING + std::cerr << "G2_DYNAMIC_LOGGING is enabled" << std::endl; +#else + std::cerr << "G2_DYNAMIC_LOGGING is DISABLED" << std::endl; +#endif + size_t number_of_threads =0; if(argc == 2) {