mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +00:00
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.
This commit is contained in:
parent
c19c306744
commit
80b660132c
Notes:
sideshowbarker
2024-07-18 01:41:29 +09:00
Author: https://github.com/BertalanD
Commit: 80b660132c
Pull-request: https://github.com/SerenityOS/serenity/pull/10647
Reviewed-by: https://github.com/IdanHo
4 changed files with 18 additions and 18 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue