MCPcopy Create free account
hub / github.com/Klipper3d/klipper / noteCall

Method noteCall

scripts/checkstack.py:45–50  ·  view source on GitHub ↗
(self, insnaddr, calladdr, stackusage)

Source from the content-addressed store, hash-verified

43 self.yield_usage = stackusage
44 # Update function info with a found "call" point.
45 def noteCall(self, insnaddr, calladdr, stackusage):
46 if (calladdr, stackusage) in self.subfuncs:
47 # Already noted a nearly identical call - ignore this one.
48 return
49 self.called_funcs.append((insnaddr, calladdr, stackusage))
50 self.subfuncs[(calladdr, stackusage)] = 1
51
52# Find out maximum stack usage for a function
53def calcmaxstack(info, funcs):

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected