MCPcopy Index your code
hub / github.com/nodejs/node / throughput

Function throughput

deps/v8/tools/gc-nvp-trace-processor.py:323–338  ·  view source on GitHub ↗
(name, trace)

Source from the content-addressed store, hash-verified

321 power *= 1024
322
323 def throughput(name, trace):
324 total_live_after = calc_total(trace, 'total_size_after')
325 total_live_before = calc_total(trace, 'total_size_before')
326 total_gc = calc_total(trace, 'pause')
327 if total_gc == 0:
328 return
329 out.write('GC %s Throughput (after): %s / %s ms = %s/ms<br/>' %
330 (name,
331 HumanReadable(total_live_after),
332 total_gc,
333 HumanReadable(total_live_after / total_gc)))
334 out.write('GC %s Throughput (before): %s / %s ms = %s/ms<br/>' %
335 (name,
336 HumanReadable(total_live_before),
337 total_gc,
338 HumanReadable(total_live_before / total_gc)))
339
340
341 with open(filename + '.html', 'w') as out:

Callers 1

process_traceFunction · 0.85

Calls 3

calc_totalFunction · 0.85
HumanReadableFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…