Skip to content

Commit 37c1135

Browse files
d-e-s-odanielocfb
authored andcommitted
deps: update blazesym submodule to v0.2.0
Update the blazesym submodule to version 0.2.0 (well, actually to 0.1.5 of blazesym-c, but they are almost the same). Signed-off-by: Daniel Müller <[email protected]>
1 parent f83a95d commit 37c1135

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

blazesym

Submodule blazesym updated 107 files

examples/rust/Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/rust/profile/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ fn attach_perf_event(
9393
fn print_frame(
9494
name: &str,
9595
addr_info: Option<(blazesym::Addr, blazesym::Addr, usize)>,
96-
code_info: &Option<symbolize::CodeInfo>,
96+
code_info: Option<&symbolize::CodeInfo>,
9797
) {
98-
let code_info = code_info.as_ref().map(|code_info| {
98+
let code_info = code_info.map(|code_info| {
9999
let path = code_info.to_path();
100100
let path = path.display();
101101

@@ -169,9 +169,9 @@ fn show_stack_trace(stack: &[u64], symbolizer: &symbolize::Symbolizer, pid: u32)
169169
inlined,
170170
..
171171
}) => {
172-
print_frame(&name, Some((input_addr, addr, offset)), &code_info);
172+
print_frame(&name, Some((input_addr, addr, offset)), code_info.as_deref());
173173
for frame in inlined.iter() {
174-
print_frame(&frame.name, None, &frame.code_info);
174+
print_frame(&frame.name, None, frame.code_info.as_ref());
175175
}
176176
}
177177
symbolize::Symbolized::Unknown(..) => {

0 commit comments

Comments
 (0)