Skip to main content

save_record

Function save_record 

Source
pub fn save_record(results_dir: &Path, record: &RunRecord) -> Result<PathBuf>
Expand description

Write record as pretty JSON to {results_dir}/{slug(model)}_{timestamp_file}.json, creating the directory if needed, and return the written path. Public so a host can persist a hand-built RunRecord without driving a full run through the runner.