Skip to main content

dump_to_path

Function dump_to_path 

Source
pub fn dump_to_path(path: &str) -> Result<i64, String>
Expand description

Serialize the aggregated zone statistics to CSV, sorted by total_ns descending so the hot zones appear at the top. Returns the number of data rows written (not including the header). Resets the profiler state after writing.

CSV schema:

zone_name,count,total_ns,min_ns,max_ns,mean_ns,stddev_ns