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

Function find_debug_file_in

src/executor/helpers/debug_file.rs:28–37  ·  view source on GitHub ↗
(
    object: &object::File,
    binary_path: &Path,
    debug_dir: &Path,
)

Source from the content-addressed store, hash-verified

26}
27
28fn find_debug_file_in(
29 object: &object::File,
30 binary_path: &Path,
31 debug_dir: &Path,
32) -> Option<PathBuf> {
33 if let Some(path) = find_debug_file_by_build_id(object, debug_dir) {
34 return Some(path);
35 }
36 find_debug_file_by_debuglink(object, binary_path, Some(debug_dir))
37}
38
39/// Build-id `a05cfb6313fe06a13c9b4b5cb86c2069faa3951f` resolves to
40/// `<debug_dir>/.build-id/a0/5cfb6313fe06a13c9b4b5cb86c2069faa3951f.debug`:

Callers 3

find_debug_fileFunction · 0.85

Calls 2