Save build times to JSON file
(self, filename=None)
| 107 | return summary |
| 108 | |
| 109 | def save_times(self, filename=None): |
| 110 | """Save build times to JSON file""" |
| 111 | output_file = filename or self.output_file |
| 112 | summary = self.get_summary() |
| 113 | |
| 114 | # Save only the current build session (overwrite file) |
| 115 | with open(output_file, 'w') as f: |
| 116 | json.dump(summary, f, indent=2) |
| 117 | |
| 118 | self.logger(f"Build times saved to {output_file}") |
| 119 | |
| 120 | def print_summary(self): |
| 121 | """Print a formatted summary of build times""" |
no test coverage detected