MCPcopy Create free account
hub / github.com/comaps/comaps / Add

Method Add

libs/routing/base/small_list.cpp:12–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10std::map<char const *, Statistics::Info> Statistics::s_map;
11
12void Statistics::Add(char const * name, size_t val)
13{
14 auto & e = s_map[name];
15 ++e.m_count;
16 e.m_sum += val;
17 e.m_max = std::max(val, e.m_max);
18}
19
20void Statistics::Dump()
21{

Callers 1

CreateOptionsFunction · 0.45

Calls

no outgoing calls

Tested by 1

CreateOptionsFunction · 0.36