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

Function do_run_replay_server

deps/v8/tools/callstats.py:303–320  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

301
302
303def do_run_replay_server(args):
304 sites = read_sites(args)
305 print("- " * 40)
306 print("Available URLs:")
307 for site in sites:
308 print(" "+site['url'])
309 print("- " * 40)
310 print("Launch chromium with the following commands for debugging:")
311 flags = get_chrome_flags("--runtime-call-stats --allow-natives-syntax",
312 "/var/tmp/`date +%s`", '"')
313 flags += get_chrome_replay_flags(args, "'")
314 print(" $CHROMIUM_DIR/out/Release/chrome " + (" ".join(flags)) + " <URL>")
315 print("- " * 40)
316 replay_server = start_replay_server(args, sites, discard_output=False)
317 try:
318 replay_server['process'].wait()
319 finally:
320 stop_replay_server(replay_server)
321
322
323# Calculate statistics.

Callers

nothing calls this directly

Calls 8

read_sitesFunction · 0.85
get_chrome_flagsFunction · 0.85
get_chrome_replay_flagsFunction · 0.85
start_replay_serverFunction · 0.85
stop_replay_serverFunction · 0.85
printFunction · 0.70
joinMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected