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

Method to_file

deps/v8/tools/gcmole/gcmole.py:317–321  ·  view source on GitHub ↗

Store call graph in file 'file_name'.

(self, file_name)

Source from the content-addressed store, hash-verified

315 self.funcs[funcname[1:]].add(self.current_caller)
316
317 def to_file(self, file_name):
318 """Store call graph in file 'file_name'."""
319 log(f"Writing serialized callgraph to {file_name}")
320 with open(file_name, 'wb') as f:
321 pickle.dump(self, f)
322
323 @staticmethod
324 def from_file(file_name):

Callers 2

testCallGraphMergeMethod · 0.80
collect_runFunction · 0.80

Calls 3

logFunction · 0.70
openFunction · 0.50
dumpMethod · 0.45

Tested by 1

testCallGraphMergeMethod · 0.64