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

Function has_memtrack_capabilities

src/executor/memory/setup.rs:45–48  ·  view source on GitHub ↗

Whether the installed memtrack binary already carries the required capabilities.

()

Source from the content-addressed store, hash-verified

43
44/// Whether the installed memtrack binary already carries the required capabilities.
45pub fn has_memtrack_capabilities() -> bool {
46 memtrack_path()
47 .is_some_and(|path| binary_has_capabilities(&path, memtrack_required_caps_mask()))
48}
49
50/// Grant memtrack the capabilities it needs to run without sudo.
51///

Callers 2

ensure_privilegesMethod · 0.85
privilege_statusMethod · 0.85

Calls 3

memtrack_pathFunction · 0.85
binary_has_capabilitiesFunction · 0.85

Tested by

no test coverage detected