MCPcopy
hub / github.com/bloomberg/memray / stack_trace

Method stack_trace

tests/utils.py:76–79  ·  view source on GitHub ↗
(self, max_stacks=0)

Source from the content-addressed store, hash-verified

74 return stack[:max_stacks]
75
76 def stack_trace(self, max_stacks=0):
77 if self._stack is None:
78 raise AssertionError("did not expect a call to `stack_trace`")
79 return self.__get_stack_trace(self._stack, max_stacks)
80
81 def hybrid_stack_trace(self, max_stacks=0):
82 if self._hybrid_stack is None:

Calls 1

__get_stack_traceMethod · 0.95