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

Function calc_total

deps/v8/tools/gc-nvp-trace-processor.py:277–278  ·  view source on GitHub ↗
(trace, field)

Source from the content-addressed store, hash-verified

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))
279
280def calc_max(trace, field):
281 return freduce(lambda t,r: max(t, r), field, trace, 0)

Callers 2

statsFunction · 0.85
throughputFunction · 0.85

Calls 1

freduceFunction · 0.85

Tested by

no test coverage detected