MCPcopy Create free account
hub / github.com/apache/thrift / addFrame

Method addFrame

contrib/parse_profiling.py:140–149  ·  view source on GitHub ↗
(self, filename, address)

Source from the content-addressed store, hash-verified

138 self.bt = []
139
140 def addFrame(self, filename, address):
141 # If libc was able to determine the symbols names, the filename
142 # argument will be of the form <filename>(<function>+<offset>)
143 # So, strip off anything after the last '('
144 idx = filename.rfind('(')
145 if idx >= 0:
146 filename = filename[:idx]
147
148 addr = get_address(filename, address)
149 self.bt.append(addr)
150
151 def write(self, f, options):
152 f.write(self.header)

Callers 1

process_fileFunction · 0.95

Calls 2

get_addressFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected