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

Function is_valgrind_installed

src/executor/valgrind/setup.rs:176–192  ·  view source on GitHub ↗
(system_info: &SystemInfo)

Source from the content-addressed store, hash-verified

174}
175
176fn is_valgrind_installed(system_info: &SystemInfo) -> bool {
177 if !matches!(
178 get_valgrind_status().status,
179 ToolInstallStatus::Installed { .. }
180 ) {
181 return false;
182 }
183
184 // `libc6-dbg` is only relevant on apt-based systems; on others (e.g. NixOS)
185 // `dpkg` is absent and would spuriously report it as missing.
186 if apt::is_system_compatible(system_info) {
187 apt::is_package_installed("libc6-dbg")
188 } else {
189 debug!("Skipping libc6-dbg check on non-apt-based system");
190 true
191 }
192}
193
194pub async fn install_valgrind(
195 system_info: &SystemInfo,

Callers 1

install_valgrindFunction · 0.85

Calls 2

is_system_compatibleFunction · 0.85
is_package_installedFunction · 0.85

Tested by

no test coverage detected