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

Function section_data

src/executor/wall_time/profiler/perf/unwind_data.rs:54–56  ·  view source on GitHub ↗
(section: &impl ObjectSection<'a>)

Source from the content-addressed store, hash-verified

52 let eh_frame_hdr = file.section_by_name(".eh_frame_hdr");
53
54 fn section_data<'a>(section: &impl ObjectSection<'a>) -> Option<Vec<u8>> {
55 section.data().ok().map(|data| data.to_owned())
56 }
57
58 let eh_frame_data = eh_frame.as_ref().and_then(section_data);
59 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