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

Method generate

ci/profile/generate_profile_test.py:179–191  ·  view source on GitHub ↗

Generate profiler test file

(self)

Source from the content-addressed store, hash-verified

177'''
178
179 def generate(self) -> Path:
180 """Generate profiler test file"""
181 signature = self._detect_signature()
182 code = self._generate_profiler(signature)
183
184 self.output_path.parent.mkdir(parents=True, exist_ok=True)
185 self.output_path.write_text(code, encoding="utf-8")
186
187 print(f"Generated profiler: {self.output_path}")
188 print("\n⚠️ IMPORTANT: The generated profiler is a TEMPLATE")
189 print(" You MUST customize the benchmark code for your specific function!")
190 print(f" Edit: {self.output_path}")
191 return self.output_path
192
193
194def main() -> int:

Callers 1

mainFunction · 0.95

Calls 3

_detect_signatureMethod · 0.95
_generate_profilerMethod · 0.95
printFunction · 0.50

Tested by

no test coverage detected