MCPcopy Create free account
hub / github.com/Da1sypetals/SnapViewer / format_callstack

Function format_callstack

convert_snap.py:48–53  ·  view source on GitHub ↗
(frames: list)

Source from the content-addressed store, hash-verified

46
47
48def format_callstack(frames: list) -> str:
49 def format_frame(iframe: tuple[int, dict]) -> str:
50 index, frame = iframe
51 return f"({index}) {frame['filename']}:{frame['line']}:{frame['name']}"
52
53 return "\n".join(map(format_frame, enumerate(frames)))
54
55
56def process_alloc_data(device_trace):

Callers 1

insert_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected