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

Function _read_logs

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

Source from the content-addressed store, hash-verified

558# Generate Raw JSON file.
559
560def _read_logs(args):
561 versions = {}
562 for path in args.logdirs:
563 if os.path.isdir(path):
564 for root, dirs, files in os.walk(path):
565 version = os.path.basename(root)
566 if version not in versions: versions[version] = {}
567 for filename in files:
568 if filename.endswith(".txt"):
569 domain = extract_domain(filename)
570 if domain not in versions[version]: versions[version][domain] = {}
571 read_stats(os.path.join(root, filename),
572 versions[version][domain], args)
573
574 return versions
575
576def do_raw_json(args):
577 versions = _read_logs(args)

Callers 2

do_raw_jsonFunction · 0.85
do_jsonFunction · 0.85

Calls 4

extract_domainFunction · 0.85
read_statsFunction · 0.85
walkMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…