MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / merge_counts

Function merge_counts

scripts/memwaste-scaling.py:126–132  ·  view source on GitHub ↗
(profdata: str, raws: list[str], merged: str)

Source from the content-addressed store, hash-verified

124
125
126def merge_counts(profdata: str, raws: list[str], merged: str) -> dict[str, int]:
127 if not raws:
128 return {}
129 subprocess.run([profdata, "merge", "-o", merged] + raws, check=True)
130 shown = subprocess.run([profdata, "show", "--all-functions", "--counts", merged],
131 capture_output=True, text=True, check=True).stdout
132 return parse_counts(shown)
133
134
135FUNC_RE = re.compile(r"^ (\S.*):$")

Callers 1

run_legFunction · 0.85

Calls 2

parse_countsFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected