MCPcopy Create free account
hub / github.com/apache/datafusion / cargo_build

Function cargo_build

benchmarks/compile_profile.py:93–114  ·  view source on GitHub ↗
(profile: str)

Source from the content-addressed store, hash-verified

91
92
93def cargo_build(profile: str) -> float:
94 if profile == "dev":
95 command = [
96 "cargo",
97 "build",
98 "--package",
99 BENCHMARK_PACKAGE,
100 "--bin",
101 "dfbench",
102 ]
103 else:
104 command = [
105 "cargo",
106 "build",
107 "--profile",
108 profile,
109 "--package",
110 BENCHMARK_PACKAGE,
111 "--bin",
112 "dfbench",
113 ]
114 return timed_run(command)
115
116
117def cargo_clean(profile: str) -> None:

Callers 1

mainFunction · 0.85

Calls 1

timed_runFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…