MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / getQueryMetricLogInterval

Function getQueryMetricLogInterval

src/Interpreters/executeQuery.cpp:422–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422static UInt64 getQueryMetricLogInterval(ContextPtr context)
423{
424 const auto & settings = context->getSettingsRef();
425 auto interval_milliseconds = settings[Setting::query_metric_log_interval];
426 if (interval_milliseconds < 0)
427 interval_milliseconds = context->getConfigRef().getUInt64("query_metric_log.collect_interval_milliseconds", 1000);
428
429 return interval_milliseconds;
430}
431
432QueryLogElement logQueryStart(
433 const std::chrono::time_point<std::chrono::system_clock> & query_start_time,

Callers 2

logQueryStartFunction · 0.85
logQueryMetricLogFinishFunction · 0.85

Calls 1

getUInt64Method · 0.45

Tested by

no test coverage detected