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

Function count_nonzero

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

Source from the content-addressed store, hash-verified

281 return freduce(lambda t,r: max(t, r), field, trace, 0)
282
283def count_nonzero(trace, field):
284 return freduce(lambda t,r: t if r == 0 else t + 1, field, trace, 0)
285
286
287def process_trace(filename):

Callers

nothing calls this directly

Calls 1

freduceFunction · 0.85

Tested by

no test coverage detected