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

Function freduce

deps/v8/tools/gc-nvp-trace-processor.py:274–275  ·  view source on GitHub ↗
(f, field, trace, init)

Source from the content-addressed store, hash-verified

272]
273
274def freduce(f, field, trace, init):
275 return reduce(lambda t,r: f(t, r[field]), trace, init)
276
277def calc_total(trace, field):
278 return freduce(lambda t,v: t + long(v), field, trace, long(0))

Callers 4

calc_totalFunction · 0.85
calc_maxFunction · 0.85
count_nonzeroFunction · 0.85
statsFunction · 0.85

Calls 2

reduceFunction · 0.50
fFunction · 0.50

Tested by

no test coverage detected