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

Method current

crates/memtrack/src/kernel.rs:27–30  ·  view source on GitHub ↗

The running kernel's release.

()

Source from the content-addressed store, hash-verified

25
26 /// The running kernel's release.
27 pub fn current() -> Result<Self> {
28 let release = kernel_release()?;
29 Self::parse(&release).with_context(|| format!("Failed to parse kernel release {release:?}"))
30 }
31
32 /// Parse the leading `<major>.<minor>` of a release string, ignoring
33 /// whatever follows it (patch level, `-rc`, distro suffix).

Callers

nothing calls this directly

Calls 1

kernel_releaseFunction · 0.85

Tested by

no test coverage detected