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

Function has_memtrack_capabilities

src/executor/memory/setup.rs:117–119  ·  view source on GitHub ↗

Whether the installed memtrack binary already carries the required capabilities.

()

Source from the content-addressed store, hash-verified

115
116/// Whether the installed memtrack binary already carries the required capabilities.
117pub fn has_memtrack_capabilities() -> bool {
118 memtrack_path().is_ok_and(|path| binary_has_capabilities(&path, memtrack_required_caps_mask()))
119}
120
121/// Grant memtrack the capabilities it needs to run without sudo.
122///

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