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

Method getQueryMetricLog

src/Interpreters/Context.cpp:6191–6199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6189}
6190
6191std::shared_ptr<QueryMetricLog> Context::getQueryMetricLog() const
6192{
6193 SharedLockGuard lock(shared->mutex);
6194
6195 if (!shared->system_logs)
6196 return {};
6197
6198 return shared->system_logs->query_metric_log;
6199}
6200
6201std::shared_ptr<ZooKeeperConnectionLog> Context::getZooKeeperConnectionLog() const
6202{

Callers 2

logQueryStartFunction · 0.80
logQueryMetricLogFinishFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected