Generate profiler test file
(self)
| 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 | |
| 194 | def main() -> int: |
no test coverage detected