MCPcopy Create free account
hub / github.com/apache/datafusion / parse_query_time

Function parse_query_time

benchmarks/src/bin/mem_profile.rs:229–238  ·  view source on GitHub ↗
(line: &str)

Source from the content-addressed store, hash-verified

227}
228
229fn parse_query_time(line: &str) -> Option<(usize, f64)> {
230 let re = regex::Regex::new(r"Query (\d+) avg time: ([\d.]+) ms").unwrap();
231 if let Some(caps) = re.captures(line) {
232 let query_id = caps[1].parse::<usize>().ok()?;
233 let avg_time = caps[2].parse::<f64>().ok()?;
234 Some((query_id, avg_time))
235 } else {
236 None
237 }
238}
239
240fn parse_vm_line(line: &str) -> Option<(String, String, String)> {
241 let re = regex::Regex::new(

Callers 1

run_queryFunction · 0.85

Calls 1

newFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…