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

Function PrintDot

deps/v8/tools/profiling/ll_prof.py:845–854  ·  view source on GitHub ↗
(code_map, options)

Source from the content-addressed store, hash-verified

843
844
845def PrintDot(code_map, options):
846 print("digraph G {")
847 for code in code_map.UsedCode():
848 if code.self_ticks < 10:
849 continue
850 print("n%d [shape=box,label=\"%s\"];" % (code.id, code.name))
851 if code.callee_ticks:
852 for callee, ticks in code.callee_ticks.iteritems():
853 print("n%d -> n%d [label=\"%d\"];" % (code.id, callee.id, ticks))
854 print("}")
855
856
857if __name__ == "__main__":

Callers 1

ll_prof.pyFile · 0.85

Calls 3

UsedCodeMethod · 0.80
iteritemsMethod · 0.80
printFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…