Get total compilation time in milliseconds.
(self)
| 105 | self.phase_events[name] = event |
| 106 | |
| 107 | def get_total_time(self) -> float: |
| 108 | """Get total compilation time in milliseconds.""" |
| 109 | exec_event = self.phase_events.get("ExecuteCompiler") |
| 110 | if exec_event: |
| 111 | return exec_event.get("dur", 0) / 1000.0 |
| 112 | return 0.0 |
| 113 | |
| 114 | def get_phase_times(self) -> dict[str, float]: |
| 115 | """Get time spent in each compilation phase.""" |
no test coverage detected