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

Method set

src/executor/helpers/linux_sysctl.rs:15–19  ·  view source on GitHub ↗
(name: &'static str, target_value: i64)

Source from the content-addressed store, hash-verified

13
14impl LinuxSysctl {
15 pub(crate) fn set(name: &'static str, target_value: i64) -> Result<Self> {
16 let previous = ensure_sysctl(name, target_value)?;
17
18 Ok(Self { name, previous })
19 }
20
21 pub(crate) fn is_changed(&self) -> bool {
22 self.previous.is_some()

Callers 4

setupMethod · 0.45
run_with_profilerFunction · 0.45
setupMethod · 0.45
runMethod · 0.45

Calls 1

ensure_sysctlFunction · 0.85

Tested by

no test coverage detected