(&self)
| 90 | |
| 91 | impl PlanCacheStats { |
| 92 | pub fn hit_rate(&self) -> f64 { |
| 93 | let total = self.hits + self.misses; |
| 94 | if total == 0 { |
| 95 | 0.0 |
| 96 | } else { |
| 97 | self.hits as f64 / total as f64 |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | pub fn average_compilation_time_saved_ms(&self) -> f64 { |
| 102 | if self.compilations_saved == 0 { |
no outgoing calls
no test coverage detected