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

Function find_binaries_in_dir

crates/memtrack/src/allocators/static_linked.rs:84–91  ·  view source on GitHub ↗
(dir: &Path)

Source from the content-addressed store, hash-verified

82}
83
84fn find_binaries_in_dir(dir: &Path) -> Vec<PathBuf> {
85 glob::glob(&format!("{}/**/*", dir.display()))
86 .into_iter()
87 .flatten()
88 .filter_map(Result::ok)
89 .filter(|p| p.is_file() && super::is_elf(p))
90 .collect::<Vec<_>>()
91}
92
93fn find_statically_linked_allocator(path: &Path) -> Option<AllocatorKind> {
94 use object::{Object, ObjectSymbol};

Callers 1

find_allFunction · 0.85

Calls 1

is_elfFunction · 0.85

Tested by

no test coverage detected