MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / observe_transform_time

Method observe_transform_time

src/sql/src/optimizer_metrics.rs:122–129  ·  view source on GitHub ↗
(&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}

Callers 1

transformMethod · 0.80

Calls 4

get_mutMethod · 0.45
pushMethod · 0.45
insertMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected