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

Method finish

crates/runner-shared/src/artifacts/memtrack.rs:115–123  ·  view source on GitHub ↗

Finish writing and flush the compression stream

(self)

Source from the content-addressed store, hash-verified

113
114 /// Finish writing and flush the compression stream
115 pub fn finish(self) -> anyhow::Result<()> {
116 let encoder = self.serializer.into_inner();
117 let mut writer = encoder.finish()?;
118
119 // Flush the writer to ensure all data is written to the underlying writer
120 writer.flush()?;
121
122 Ok(())
123 }
124}
125
126#[cfg(test)]

Callers 4

track_commandFunction · 0.45
write_eventsFunction · 0.45
fmtMethod · 0.45
encode_to_writerMethod · 0.45

Calls 1

flushMethod · 0.45

Tested by

no test coverage detected