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

Method inc_transform

src/sql/src/optimizer_metrics.rs:115–120  ·  view source on GitHub ↗
(&self, hit: bool, transform: &str)

Source from the content-addressed store, hash-verified

113 }
114
115 pub fn inc_transform(&self, hit: bool, transform: &str) {
116 if hit {
117 self.transform_hits.with_label_values(&[transform]).inc();
118 }
119 self.transform_total.with_label_values(&[transform]).inc();
120 }
121
122 pub fn observe_transform_time(&mut self, transform: &str, duration: Duration) {
123 let transform_time_seconds = &mut self.transform_time_seconds;

Callers 1

transformMethod · 0.80

Calls 1

incMethod · 0.45

Tested by

no test coverage detected