1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 17:15:08 +00:00

Kernel+ProfileViewer: Move symbolication to userspace for time profiles

This makes the time profiles look like the memory profiles so we can
use the userspace symbolication code in ProfileViewer.
This commit is contained in:
Andreas Kling 2020-02-22 10:05:03 +01:00
parent 94652fd2fb
commit 983b4bd9f2
5 changed files with 32 additions and 62 deletions

View file

@ -44,13 +44,7 @@ int main(int argc, char** argv)
}
const char* path = argv[1];
OwnPtr<Profile> profile;
if (!strcmp(path, "perfcore")) {
profile = Profile::load_from_perfcore_file(path);
} else {
profile = Profile::load_from_file(path);
}
auto profile = Profile::load_from_perfcore_file(path);
if (!profile) {
fprintf(stderr, "Unable to load profile '%s'\n", path);