Merge multiple call graphs from a list of files.
(*file_names)
| 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 | |
| 341 | class GCSuspectsCollector: |