Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
283
def
count_nonzero(trace, field):
284
return
freduce(
lambda
t,r: t
if
r == 0
else
t + 1, field, trace, 0)
285
286
287
def
process_trace(filename):
Callers
nothing calls this directly
Calls
1
freduce
Function · 0.85
Tested by
no test coverage detected