1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:57:44 +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:
Daniel Bertalan 2021-10-26 17:35:35 +02:00 committed by Andreas Kling
parent c19c306744
commit 80b660132c
4 changed files with 18 additions and 18 deletions

View file

@ -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)