diff options
author | Daniel Bertalan <dani@danielbertalan.dev> | 2021-10-26 17:35:35 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-31 16:54:02 +0100 |
commit | 80b660132c72c27f65a6525b0fe8508ed18292b5 (patch) | |
tree | 937da144d0df591b545d927b4a470196a3cd837e /Userland/DevTools/Profiler/Profile.h | |
parent | c19c3067449f07eceae4c4026f7cf06a3ec0ef52 (diff) | |
download | serenity-80b660132c72c27f65a6525b0fe8508ed18292b5.zip |
Profiler: Share the mapped kernel between Profile and DisassemblyModel
There is no point in keeping around a separate MappedFile object for
/boot/Kernel.debug for each DisassemblyModel we create and re-parsing
the kernel image multiple times. This will significantly speed up
browsing through profile entries from the kernel in disassembly view.
Diffstat (limited to 'Userland/DevTools/Profiler/Profile.h')
-rw-r--r-- | Userland/DevTools/Profiler/Profile.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/DevTools/Profiler/Profile.h b/Userland/DevTools/Profiler/Profile.h index 4bd65b4f5c..4549c90288 100644 --- a/Userland/DevTools/Profiler/Profile.h +++ b/Userland/DevTools/Profiler/Profile.h @@ -28,6 +28,8 @@ namespace Profiler { +extern Optional<MappedObject> g_kernel_debuginfo_object; + class ProfileNode : public RefCounted<ProfileNode> { public: static NonnullRefPtr<ProfileNode> create(Process const& process, FlyString object_name, String symbol, FlatPtr address, u32 offset, u64 timestamp, pid_t pid) |