Lines Matching refs:stack
100 frameTable: interned stack frame ID -> stack frame.
103 stackTable: interned stack ID -> stack.
104 stackMap: (stack prefix ID, leaf stack frame ID) -> interned Stack ID.
129 """Gets a matching stack, or saves the new stack. Returns a Stack ID."""
151 """Gets a matching stack frame, or saves the new frame. Returns a Frame ID."""
177 def _add_sample(self, comm: str, stack: List[str], time_ms: Milliseconds) -> None:
178 """Add a timestamped stack trace sample to the thread builder.
181 stack: sampled stack frames. Root first, leaf last.
190 (self._intern_frame(frame), prefix_id), stack, None)
223 "stack": 0,
274 # Parse and append the callchain of the current sample into a stack.
275 stack = []
280 stack.append(f'{call["sym"]["name"]} (in {call["dso"]})')
281 if len(stack) != 0:
282 # Reverse the stack, as root come first and the leaf at the end.
283 stack = stack[::-1]
290 stack.append(f'{func} (in {dso})')
297 thread._add_sample(comm=comm, stack=stack, time_ms=time_stamp)