mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:07:43 +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
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