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

Function parse_vm_line

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

Source from the content-addressed store, hash-verified

238}
239
240fn parse_vm_line(line: &str) -> Option<(String, String, String)> {
241 let re = regex::Regex::new(
242 r"Peak RSS:\s*([\d.]+\s*[A-Z]+),\s*Peak Commit:\s*([\d.]+\s*[A-Z]+),\s*Page Faults:\s*([\d.]+)"
243 ).ok()?;
244 let caps = re.captures(line)?;
245 let peak_rss = caps.get(1)?.as_str().to_string();
246 let peak_commit = caps.get(2)?.as_str().to_string();
247 let page_faults = caps.get(3)?.as_str().to_string();
248 Some((peak_rss, peak_commit, page_faults))
249}
250
251// Print as simple aligned table
252fn print_summary_table(results: &[QueryResult]) {

Callers 1

run_queryFunction · 0.85

Calls 4

newFunction · 0.85
to_stringMethod · 0.45
as_strMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…