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

Function write

crates/runner-shared/src/telemetry/tests.rs:89–95  ·  view source on GitHub ↗
(path: &Path, batches: &[&[R]])

Source from the content-addressed store, hash-verified

87}
88
89fn write<R: TelemetryRow + Clone>(path: &Path, batches: &[&[R]]) {
90 let mut writer = TelemetryWriter::<R>::create(path).unwrap();
91 for rows in batches {
92 writer.write(rows.to_vec()).unwrap();
93 }
94 writer.close().unwrap();
95}
96
97fn read<R: TelemetryRow>(artifact: &[u8]) -> anyhow::Result<Vec<R>> {
98 TelemetryReader::<R, _>::new(artifact)?.collect()

Callers 15

write_persistedFunction · 0.85
registerFunction · 0.85
test_export_run_idFunction · 0.85
stopMethod · 0.85
writeMethod · 0.85
save_to_cacheFunction · 0.85

Calls 2

writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected