mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Disable query profiler if we build with test coverage
This commit is contained in:
parent
994ef14393
commit
0ee6314bfc
@ -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();
|
||||
|
@ -9,3 +9,4 @@
|
||||
#cmakedefine01 HAVE_READLINE_HISTORY
|
||||
#cmakedefine01 UNBUNDLED
|
||||
#cmakedefine01 USE_INTERNAL_UNWIND_LIBRARY
|
||||
#cmakedefine01 WITH_COVERAGE
|
||||
|
Loading…
Reference in New Issue
Block a user