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

Function run

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

Run a subprocess, returning stdout.

(cmd, *, input=None, capture=True, env=None, cwd=None, check=True)

Source from the content-addressed store, hash-verified

114
115
116def run(cmd, *, input=None, capture=True, env=None, cwd=None, check=True):
117 """Run a subprocess, returning stdout."""
118 merged_env = {**os.environ, **(env or {})}
119 result = subprocess.run(
120 cmd,
121 input=input,
122 capture_output=capture,
123 text=True,
124 env=merged_env,
125 cwd=cwd,
126 check=check,
127 )
128 return result.stdout if capture else None
129
130
131def check_tools():

Callers 5

build_wasmFunction · 0.70
extract_core_moduleFunction · 0.70
run_twiggyFunction · 0.70
demangle_symbolsFunction · 0.70
generate_flamegraphFunction · 0.70

Calls 1

runMethod · 0.65

Tested by

no test coverage detected