From f8aea2a7e519d13f91661adf0c395f03cd9484e6 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Tue, 26 Apr 2022 04:39:58 +0200 Subject: Profiler: Use absolute mmap paths as-is --- Userland/DevTools/Profiler/Process.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Userland/DevTools') diff --git a/Userland/DevTools/Profiler/Process.cpp b/Userland/DevTools/Profiler/Process.cpp index 81ea70facc..f2c09a4032 100644 --- a/Userland/DevTools/Profiler/Process.cpp +++ b/Userland/DevTools/Profiler/Process.cpp @@ -91,7 +91,9 @@ void LibraryMetadata::handle_mmap(FlatPtr base, size_t size, String const& name) } else { String path_string = path.to_string(); String full_path; - if (Core::File::looks_like_shared_library(path_string)) + if (path_string.starts_with('/')) + full_path = path_string; + else if (Core::File::looks_like_shared_library(path_string)) full_path = String::formatted("/usr/lib/{}", path); else full_path = path_string; -- cgit v1.2.3