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

Method updateHostValue

src/Client/ProgressTable.cpp:427–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425}
426
427void ProgressTable::MetricInfoPerHost::updateHostValue(const HostName & host, ProfileEvents::Type type, Int64 new_value, double new_time)
428{
429 auto it = host_to_metric.find(host);
430 if (it == host_to_metric.end())
431 it = host_to_metric.emplace(host, type).first;
432 it->second.updateValue(new_value, new_time);
433}
434
435double ProgressTable::MetricInfoPerHost::getSummaryValue() const
436{

Callers 1

updateTableMethod · 0.80

Calls 4

findMethod · 0.45
endMethod · 0.45
emplaceMethod · 0.45
updateValueMethod · 0.45

Tested by

no test coverage detected