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

Function memtrack_setcap_spec

src/executor/memory/setup.rs:31–38  ·  view source on GitHub ↗

`setcap` grammar form of [`MEMTRACK_REQUIRED_CAPS`]: the lowercase cap names (libcap renders them lowercase) joined with commas and the `+ep` effective+permitted flag. Derived from the enum so the two never drift.

()

Source from the content-addressed store, hash-verified

29/// (libcap renders them lowercase) joined with commas and the `+ep`
30/// effective+permitted flag. Derived from the enum so the two never drift.
31fn memtrack_setcap_spec() -> String {
32 let caps = MEMTRACK_REQUIRED_CAPS
33 .iter()
34 .map(|c| c.to_string().to_lowercase())
35 .collect::<Vec<_>>()
36 .join(",");
37 format!("{caps}+ep")
38}
39
40fn memtrack_path() -> Option<PathBuf> {
41 which::which(MEMTRACK_COMMAND).ok()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected