From c1525815247895a3e6e6b11571330ec197d204fb Mon Sep 17 00:00:00 2001 From: rachytski Date: Wed, 27 Apr 2011 21:43:10 +0300 Subject: [PATCH] supporting benchmark only in production configuration. --- platform/qtplatform.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/platform/qtplatform.cpp b/platform/qtplatform.cpp index cbc444b61e..6cf5cefdba 100644 --- a/platform/qtplatform.cpp +++ b/platform/qtplatform.cpp @@ -3,6 +3,8 @@ #include "../base/assert.hpp" #include "../base/macros.hpp" #include "../base/timer.hpp" +#include "../base/logging.hpp" +#include "../defines.hpp" #include #include @@ -382,7 +384,20 @@ public: bool IsBenchmarking() const { - return false; + bool res = true; +#ifndef OMIM_PRODUCTION + if (res) + { + static bool first = true; + if (first) + { + LOG(LCRITICAL, ("benchmarking only defined in production configuration")); + first = false; + } + res = false; + } +#endif + return res; } string const DeviceID() const