mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
Profiler: Display source location information in the disassembly view
With this, we can now have some amount of source-level profiling information :^)
This commit is contained in:
parent
c4437e19bd
commit
5d3b452897
Notes:
sideshowbarker
2024-07-18 07:25:10 +09:00
Author: https://github.com/alimpfard
Commit: 5d3b452897
Pull-request: https://github.com/SerenityOS/serenity/pull/9227
2 changed files with 31 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibDebug/DebugInfo.h>
|
||||
#include <LibGUI/Model.h>
|
||||
#include <LibX86/Instruction.h>
|
||||
|
||||
|
@ -21,6 +22,7 @@ struct InstructionData {
|
|||
FlatPtr address { 0 };
|
||||
u32 event_count { 0 };
|
||||
float percent { 0 };
|
||||
Debug::DebugInfo::SourcePositionWithInlines source_position_with_inlines;
|
||||
};
|
||||
|
||||
class DisassemblyModel final : public GUI::Model {
|
||||
|
@ -35,6 +37,7 @@ public:
|
|||
SampleCount,
|
||||
InstructionBytes,
|
||||
Disassembly,
|
||||
SourceLocation,
|
||||
__Count
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue