diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-07-20 13:40:49 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-20 15:12:19 +0200 |
commit | fbc56461da66f7dbb4eb8f8c0ec03a190127a060 (patch) | |
tree | 446d622c096f521acfa0d986c50f78a986697b28 /Userland/DevTools/Profiler/Profile.cpp | |
parent | 60b52cfb02a9a0a4e844f11c186e8b61eaa158ac (diff) | |
download | serenity-fbc56461da66f7dbb4eb8f8c0ec03a190127a060.zip |
Profiler: Make profiler not truncate 64-bit addresses
Diffstat (limited to 'Userland/DevTools/Profiler/Profile.cpp')
-rw-r--r-- | Userland/DevTools/Profiler/Profile.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/DevTools/Profiler/Profile.cpp b/Userland/DevTools/Profiler/Profile.cpp index d66391ad8a..9bcb63a020 100644 --- a/Userland/DevTools/Profiler/Profile.cpp +++ b/Userland/DevTools/Profiler/Profile.cpp @@ -313,7 +313,7 @@ Result<NonnullOwnPtr<Profile>, String> Profile::load_from_perfcore_file(const St auto& stack_array = stack->as_array(); for (ssize_t i = stack_array.values().size() - 1; i >= 0; --i) { auto& frame = stack_array.at(i); - auto ptr = frame.to_number<u32>(); + auto ptr = frame.to_number<u64>(); u32 offset = 0; FlyString object_name; String symbol; @@ -338,7 +338,7 @@ Result<NonnullOwnPtr<Profile>, String> Profile::load_from_perfcore_file(const St } } - event.frames.append({ object_name, symbol, ptr, offset }); + event.frames.append({ object_name, symbol, (FlatPtr)ptr, offset }); } if (event.frames.size() < 2) @@ -491,7 +491,7 @@ ProfileNode::ProfileNode(Process const& process) { } -ProfileNode::ProfileNode(Process const& process, const String& object_name, String symbol, u32 address, u32 offset, u64 timestamp, pid_t pid) +ProfileNode::ProfileNode(Process const& process, const String& object_name, String symbol, FlatPtr address, u32 offset, u64 timestamp, pid_t pid) : m_process(process) , m_symbol(move(symbol)) , m_pid(pid) |