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:
parent
c19c306744
commit
80b660132c
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