Disable query profiler if we build with test coverage

This commit is contained in:
Alexey Milovidov 2019-08-03 07:52:14 +03:00
parent 06b99e61aa
commit d8eae1f83a
2 changed files with 3 additions and 1 deletions

View File

@ -511,7 +511,8 @@ int Server::main(const std::vector<std::string> & /*args*/)
LOG_DEBUG(log, "Loaded metadata.");
/// Init trace collector only after trace_log system table was created
#if USE_INTERNAL_UNWIND_LIBRARY
/// Disable it if we collect test coverage information, because it will work extremely slow.
#if USE_INTERNAL_UNWIND_LIBRARY && !WITH_COVERAGE
/// QueryProfiler cannot work reliably with any other libunwind or without PHDR cache.
if (hasPHDRCache())
global_context->initializeTraceCollector();

View File

@ -9,3 +9,4 @@
#cmakedefine01 HAVE_READLINE_HISTORY
#cmakedefine01 UNBUNDLED
#cmakedefine01 USE_INTERNAL_UNWIND_LIBRARY
#cmakedefine01 WITH_COVERAGE