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

Function memtrack_cache_dir

src/executor/memory/setup.rs:108–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106}
107
108fn memtrack_cache_dir() -> Result<PathBuf> {
109 let cache = std::env::var_os("XDG_CACHE_HOME")
110 .map(PathBuf::from)
111 .or_else(|| std::env::var_os("HOME").map(|home| PathBuf::from(home).join(".cache")))
112 .context("neither XDG_CACHE_HOME nor HOME is set")?;
113 Ok(cache.join("codspeed").join("memtrack"))
114}
115
116/// Whether the installed memtrack binary already carries the required capabilities.
117pub fn has_memtrack_capabilities() -> bool {

Callers 1

memtrack_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected