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

Method from_path_static

crates/memtrack/src/allocators/static_linked.rs:47–53  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

45
46impl AllocatorLib {
47 pub fn from_path_static(path: &Path) -> Result<Self, Box<dyn std::error::Error>> {
48 let kind = find_statically_linked_allocator(path).ok_or("No allocator found")?;
49 Ok(Self {
50 kind,
51 path: path.to_path_buf(),
52 })
53 }
54}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected