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

Function _format_stack_summary

tools/fastgrind.py:197–203  ·  view source on GitHub ↗
(node: dict[str, Any])

Source from the content-addressed store, hash-verified

195
196
197def _format_stack_summary(node: dict[str, Any]) -> str:
198 return (
199 f"share {_format_percent(float(node.get('share_percent', 0.0)))} | "
200 f"value {_format_value(float(node.get('value', 0.0)))} | "
201 f"malloc {_format_value(float(node.get('malloc', 0.0)))} | "
202 f"free {_format_value(float(node.get('free', 0.0)))}"
203 )
204
205
206def _stack_panel_script() -> str:

Callers 3

_stack_tree_to_textMethod · 0.85

Calls 2

_format_percentFunction · 0.85
_format_valueFunction · 0.85

Tested by

no test coverage detected