Skip to content

Commit de3596b

Browse files
committed
use memory_offset rather than file_offset
1 parent e0c6298 commit de3596b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

util/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pprof_util"
3-
version = "0.8.0"
3+
version = "0.8.1"
44
edition = "2021"
55
description = "various utilities for representing and manipulating profiling data"
66
publish = true

util/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl StackProfile {
195195
// Convert runtime address to file-relative address using found mapping data
196196
let file_relative_addr = mapping_info
197197
.map(|(_, mapping)| {
198-
(addr as usize - mapping.memory_start + mapping.file_offset as usize) as u64
198+
(addr as usize - mapping.memory_start + mapping.memory_offset) as u64
199199
})
200200
.unwrap_or(addr);
201201

0 commit comments

Comments
 (0)