Invalidate the trace cache. Call after any trace.json mutation or scope change so the next read picks up the new state immediately. Also drops the run_index — traces could have been added/removed.
(&self)
| 75 | /// scope change so the next read picks up the new state immediately. |
| 76 | /// Also drops the run_index — traces could have been added/removed. |
| 77 | pub fn invalidate_trace_cache(&self) { |
| 78 | if let Ok(mut guard) = self.trace_cache.lock() { |
| 79 | *guard = None; |
| 80 | } |
| 81 | if let Ok(mut idx) = self.run_index.lock() { |
| 82 | idx.clear(); |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | pub fn add_scope(&self, scope: &Path) -> Result<PathBuf> { |
| 87 | let canon = scope |
no outgoing calls
no test coverage detected