pub fn record_run(record: &RunRecord, path: Option<&PathBuf>) -> Result<()>
Append a run record to the stats file.