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

Method from_files

deps/v8/tools/gcmole/gcmole.py:331–338  ·  view source on GitHub ↗

Merge multiple call graphs from a list of files.

(*file_names)

Source from the content-addressed store, hash-verified

329
330 @staticmethod
331 def from_files(*file_names):
332 """Merge multiple call graphs from a list of files."""
333 callgraph = CallGraph()
334 for file_name in file_names:
335 funcs = CallGraph.from_file(file_name).funcs
336 for callee, callers in funcs.items():
337 callgraph.funcs[callee].update(callers)
338 return callgraph
339
340
341class GCSuspectsCollector:

Callers 2

testCallGraphMergeMethod · 0.80
merge_runFunction · 0.80

Calls 4

CallGraphClass · 0.85
from_fileMethod · 0.80
updateMethod · 0.65
itemsMethod · 0.45

Tested by 1

testCallGraphMergeMethod · 0.64