Home
last modified time | relevance | path

Searched refs:statsMap (Results 1 – 1 of 1) sorted by relevance

/packages/modules/DnsResolver/
DDnsStats.cpp168 ServerStatsMap& statsMap = mStats[protocol]; in setServers() local
170 statsMap.try_emplace(server, StatsRecords(server, kLogSize)); in setServers()
174 const auto cleanup = [&](ServerStatsMap* statsMap) { in setServers() argument
177 if (statsMap->find(server) != statsMap->end()) { in setServers()
178 tmp.insert(statsMap->extract(server)); in setServers()
181 statsMap->swap(tmp); in setServers()
184 cleanup(&statsMap); in setServers()
244 const auto dumpStatsMap = [&](ServerStatsMap& statsMap) { in dump() argument
246 if (statsMap.size() == 0) { in dump()
250 for (const auto& [_, statsRecords] : statsMap) { in dump()