Skip to content

Commit 6ff19b3

Browse files
Try adding inlining
1 parent ca8c99d commit 6ff19b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/symbolize/gimli/parse_running_mmaps_unix.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,12 @@ pub(super) fn parse_maps() -> Result<Vec<MapsEntry>, &'static str> {
6969
}
7070

7171
impl MapsEntry {
72+
#[inline]
7273
pub(super) fn pathname(&self) -> &OsString {
7374
&self.pathname
7475
}
7576

77+
#[inline]
7678
pub(super) fn ip_matches(&self, ip: usize) -> bool {
7779
self.address.0 <= ip && ip < self.address.1
7880
}
@@ -85,6 +87,7 @@ impl FromStr for MapsEntry {
8587
// e.g.: "ffffffffff600000-ffffffffff601000 --xp 00000000 00:00 0 [vsyscall]"
8688
// e.g.: "7f5985f46000-7f5985f48000 rw-p 00039000 103:06 76021795 /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2"
8789
// e.g.: "35b1a21000-35b1a22000 rw-p 00000000 00:00 0"
90+
#[inline]
8891
fn from_str(s: &str) -> Result<Self, Self::Err> {
8992
let missing_field = "failed to find all map fields";
9093
let parse_err = "failed to parse all map fields";

0 commit comments

Comments
 (0)