MCPcopy Create free account
hub / github.com/FastLED/FastLED / get_binary_path

Method get_binary_path

ci/profile_runner.py:176–193  ·  view source on GitHub ↗

Get path to built profiler binary

(self)

Source from the content-addressed store, hash-verified

174 return False
175
176 def get_binary_path(self) -> Path:
177 """Get path to built profiler binary"""
178 # Both Docker and local builds use the same .build/meson-<mode>/ directory
179 # Docker mounts the host's .build directory, so binaries are in the same location
180 base_path = f".build/meson-{self.build_mode}/tests/profile/{self.test_name}"
181
182 # Try without extension first (Linux/Docker)
183 binary_path = Path(base_path)
184 if binary_path.exists():
185 return binary_path
186
187 # Try with .exe extension (Windows local builds)
188 binary_path_exe = Path(f"{base_path}.exe")
189 if binary_path_exe.exists():
190 return binary_path_exe
191
192 # Return the expected path even if it doesn't exist (for error messages)
193 return Path(base_path)
194
195 def _run_with_timeout(
196 self, cmd: list[str], timeout_seconds: int = 120

Callers 2

run_benchmarkMethod · 0.95
run_callgrindMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected