MCPcopy Create free account
hub / github.com/vercel/vercel / run_twiggy

Function run_twiggy

packages/python-analysis/scripts/profile-wasm.py:219–222  ·  view source on GitHub ↗

Run twiggy top to get item-level size data.

(core_wasm)

Source from the content-addressed store, hash-verified

217
218
219def run_twiggy(core_wasm):
220 """Run twiggy top to get item-level size data."""
221 out = run(["twiggy", "top", str(core_wasm), "-n", "9999", "--format", "json"])
222 return json.loads(out)
223
224
225# ---------------------------------------------------------------------------

Callers 1

mainFunction · 0.85

Calls 1

runFunction · 0.70

Tested by

no test coverage detected