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

Function print_entry

deps/v8/tools/callstats.py:465–473  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

463 low, high = N-args.limit, N
464 # How to print entries.
465 def print_entry(key, value):
466 def stats(s, units=""):
467 conf = "{:0.1f}({:0.2f}%)".format(s['ci']['abs'], s['ci']['perc'])
468 return "{:8.1f}{} +/- {:15s}".format(s['average'], units, conf)
469 print("{:>50s} {} {}".format(
470 key,
471 stats(value['time_stat'], units="ms"),
472 stats(value['count_stat'])
473 ))
474 # Print and calculate partial sums, if necessary.
475 for i in range(low, high):
476 print_entry(*L[i])

Callers 1

print_statsFunction · 0.85

Calls 3

printFunction · 0.70
statsFunction · 0.70
formatMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…