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

Function print_command

deps/v8/tools/callstats.py:40–48  ·  view source on GitHub ↗
(cmd_args)

Source from the content-addressed store, hash-verified

38# Run benchmarks.
39
40def print_command(cmd_args):
41 def fix_for_printing(arg):
42 m = re.match(r'^--([^=]+)=(.*)$', arg)
43 if m and (' ' in m.group(2) or m.group(2).startswith('-')):
44 arg = "--{}='{}'".format(m.group(1), m.group(2))
45 elif ' ' in arg:
46 arg = "'{}'".format(arg)
47 return arg
48 print(" ".join(map(fix_for_printing, cmd_args)))
49
50
51def start_replay_server(args, sites, discard_output=True):

Callers 2

start_replay_serverFunction · 0.85
run_siteFunction · 0.85

Calls 3

printFunction · 0.70
mapFunction · 0.50
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…