pub fn dump_file(path: &Path) -> Result<()>
Serialize the current or stopped measurement window as a DHAT v2 JSON file.