1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:27:43 +00:00

ProfileViewer: Add basic support for loading "perfcore" files

"perfcore" is the file that the kernel generates after a process that
was recording performance events has exited.

This patch teaches ProfileViewer how to load (and symbolicate!) those
files so that we can look at them. This will need a bunch more work
to make it truly useful.
This commit is contained in:
Andreas Kling 2020-02-02 20:29:55 +01:00
parent fa97ff1c83
commit 266d7ca268
3 changed files with 74 additions and 1 deletions

View file

@ -105,6 +105,7 @@ private:
class Profile {
public:
static OwnPtr<Profile> load_from_file(const StringView& path);
static OwnPtr<Profile> load_from_perfcore_file(const StringView& path);
~Profile();
GUI::Model& model();