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

Method from_path_static

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

Source from the content-addressed store, hash-verified

135
136impl AllocatorLib {
137 pub fn from_path_static(path: &Path) -> Result<Self, Box<dyn std::error::Error>> {
138 let kind = find_statically_linked_allocator(path).ok_or("No allocator found")?;
139 Ok(Self {
140 kind,
141 path: path.to_path_buf(),
142 })
143 }
144}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected