1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:57:44 +00:00

Profiler: Add source code view

This adds a new view mode to profiler which displays source lines and
samples that occured at those lines. This view can be opened via the
menu or by pressing CTRL-S.

It does this by mapping file names from DWARF to "/usr/src/serenity/..."
i.e. source code should be copied to /usr/src/serenity/Userland and
/usr/src/serenity/Kernel to be visible in this mode.

Currently *all* files contributing to the selected function are loaded
completely which could be a lot of data when dealing with lots of
inlined code.
This commit is contained in:
Stephan Unverwerth 2021-12-27 01:25:58 +01:00 committed by Andreas Kling
parent e6df1c9988
commit cf8427b7b4
6 changed files with 315 additions and 0 deletions

View file

@ -14,6 +14,7 @@ set(SOURCES
ProfileModel.cpp
SamplesModel.cpp
SignpostsModel.cpp
SourceModel.cpp
TimelineContainer.cpp
TimelineHeader.cpp
TimelineTrack.cpp