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

Function do_raw_json

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

Source from the content-addressed store, hash-verified

574 return versions
575
576def do_raw_json(args):
577 versions = _read_logs(args)
578
579 for version, domains in versions.items():
580 if args.aggregate:
581 create_total_page_stats(domains, args)
582 for domain, entries in domains.items():
583 raw_entries = []
584 for name, value in entries.items():
585 # We don't want the calculated sum in the JSON file.
586 if name == "Sum": continue
587 raw_entries.append({
588 'name': name,
589 'duration': value['time_list'],
590 'count': value['count_list'],
591 })
592
593 domains[domain] = raw_entries
594
595 print(json.dumps(versions, separators=(',', ':')))
596
597
598# Generate JSON file.

Callers

nothing calls this directly

Calls 5

_read_logsFunction · 0.85
create_total_page_statsFunction · 0.85
printFunction · 0.70
itemsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…