MCPcopy Create free account
hub / github.com/nodejs/node / sum_up

Function sum_up

deps/v8/tools/callstats.py:531–537  ·  view source on GitHub ↗
(parent, key, other)

Source from the content-addressed store, hash-verified

529def create_total_page_stats(domains, args):
530 total = {}
531 def sum_up(parent, key, other):
532 sums = parent[key]
533 for i, item in enumerate(other[key]):
534 if i >= len(sums):
535 sums.extend([0] * (i - len(sums) + 1))
536 if item is not None:
537 sums[i] += item
538 # Exclude adwords and speedometer pages from aggrigate total, since adwords
539 # dominates execution time and speedometer is measured elsewhere.
540 excluded_domains = ['adwords.google.com', 'speedometer-angular',

Callers 1

create_total_page_statsFunction · 0.85

Calls 2

enumerateFunction · 0.50
extendMethod · 0.45

Tested by

no test coverage detected