1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:07:34 +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:
Ali Mohammad Pur 2021-08-06 00:37:20 +04:30 committed by Andreas Kling
parent c4437e19bd
commit 5d3b452897
2 changed files with 31 additions and 1 deletions

View file

@ -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
};