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

Method AddTFLine

deps/v8/tools/process-wasm-compilation-times.py:70–88  ·  view source on GitHub ↗
(self, words)

Source from the content-addressed store, hash-verified

68 raise Exception("unknown compiler: %s" % words[4])
69
70 def AddTFLine(self, words):
71 assert not self.has_tf, "duplicate TF line for %s" % self.index
72 self.has_tf = True
73 # 0 1 2 3 4 5 6 7 8 9 10 11
74 # Compiled function #6 using TurboFan, took 0 ms and 14440 / 44656
75 # 12 13 14 15 16 17 18 19
76 # max/total bytes; bodysize 12 codesize 24 name wasm-function#6
77 time_factor = 1
78 if words[7] == "ms":
79 time_factor = 1000
80 elif words[7] == "μs":
81 pass # Default.
82 else:
83 assert False, "Time must be in 'ms' or 'μs'."
84 self.time_tf = int(words[6]) * time_factor
85 self.mem_tf_max = int(words[9])
86 self.mem_tf_total = int(words[11])
87 self.size_tf = int(words[17])
88 self.name = words[19]
89
90 def AddLiftoffLine(self, words):
91 assert self.index == words[2], "wrong function"

Callers 1

AddLineMethod · 0.95

Calls 1

intFunction · 0.85

Tested by

no test coverage detected