MCPcopy Create free account
hub / github.com/adny-code/fastgrind / _stack_tree_to_text

Method _stack_tree_to_text

tools/fastgrind.py:1417–1420  ·  view source on GitHub ↗
(self, tree: dict[str, Any])

Source from the content-addressed store, hash-verified

1415 self._annotate_stack_tree_share(child, total_value)
1416
1417 def _stack_tree_to_text(self, tree: dict[str, Any]) -> str:
1418 lines = [f"{_stack_node_name(tree)} {_format_stack_summary(tree)}"]
1419 self._render_stack_tree_text(tree, 0, lines)
1420 return "\n".join(lines)
1421
1422 def _render_stack_tree_text(self, node: dict[str, Any], depth: int, lines: list[str]) -> None:
1423 for child in node.get("children", []):

Callers 2

stack_breakdownMethod · 0.95
_dispatchMethod · 0.80

Calls 3

_stack_node_nameFunction · 0.85
_format_stack_summaryFunction · 0.85

Tested by

no test coverage detected