MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / save_to

Method save_to

crates/runner-shared/src/metadata.rs:79–86  ·  view source on GitHub ↗
(&self, path: P)

Source from the content-addressed store, hash-verified

77 }
78
79 pub fn save_to<P: AsRef<Path>>(&self, path: P) -> anyhow::Result<()> {
80 let file = std::fs::File::create(path.as_ref().join("walltime.metadata"))?;
81 const BUFFER_SIZE: usize = 256 * 1024 /* 256 KB */;
82
83 let writer = BufWriter::with_capacity(BUFFER_SIZE, file);
84 serde_json::to_writer(writer, self)?;
85 Ok(())
86 }
87}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected