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

Method is_empty

crates/runner-shared/src/artifacts/memtrack.rs:30–35  ·  view source on GitHub ↗
(reader: R)

Source from the content-addressed store, hash-verified

28 }
29
30 pub fn is_empty<R: std::io::Read>(reader: R) -> bool {
31 let Ok(mut stream) = MemtrackArtifact::decode_streamed(BufReader::new(reader)) else {
32 return true;
33 };
34 stream.next().is_none()
35 }
36}
37
38#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq)]

Callers 6

read_commands_from_stdinFunction · 0.45
mainFunction · 0.45
find_from_envMethod · 0.45
find_allFunction · 0.45
compile_rust_binaryFunction · 0.45
from_runtime_dataMethod · 0.45

Calls 1

nextMethod · 0.80

Tested by 1

compile_rust_binaryFunction · 0.36