Method
observe_transform_time
(&mut self, transform: &str, duration: Duration)
Source from the content-addressed store, hash-verified
| 120 | } |
| 121 | |
| 122 | pub fn observe_transform_time(&mut self, transform: &str, duration: Duration) { |
| 123 | let transform_time_seconds = &mut self.transform_time_seconds; |
| 124 | if let Some(times) = transform_time_seconds.get_mut(transform) { |
| 125 | times.push(duration); |
| 126 | } else { |
| 127 | transform_time_seconds.insert(transform.to_string(), vec![duration]); |
| 128 | } |
| 129 | } |
| 130 | } |
Tested by
no test coverage detected