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

Function section_data

src/executor/shared/module_artifacts/unwind_data.rs:73–75  ·  view source on GitHub ↗
(section: &impl ObjectSection<'a>)

Source from the content-addressed store, hash-verified

71 let eh_frame_hdr = file.section_by_name(".eh_frame_hdr");
72
73 fn section_data<'a>(section: &impl ObjectSection<'a>) -> Option<Vec<u8>> {
74 section.data().ok().map(|data| data.to_owned())
75 }
76
77 let eh_frame_data = eh_frame.as_ref().and_then(section_data);
78 let eh_frame_hdr_data = eh_frame_hdr.as_ref().and_then(section_data);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected