mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
Profiler: Correct the event names for 'malloc' and 'free'
These were renamed to 'kmalloc' and 'kfree' in the profile recording infrastructure, but the Profiler application expected the old names still.
This commit is contained in:
parent
7a471b7cf5
commit
a539c261b1
1 changed files with 2 additions and 2 deletions
|
@ -288,12 +288,12 @@ ErrorOr<NonnullOwnPtr<Profile>> Profile::load_from_perfcore_file(StringView path
|
|||
|
||||
if (type_string == "sample"sv) {
|
||||
event.data = Event::SampleData {};
|
||||
} else if (type_string == "malloc"sv) {
|
||||
} else if (type_string == "kmalloc"sv) {
|
||||
event.data = Event::MallocData {
|
||||
.ptr = perf_event.get_addr("ptr"sv).value_or(0),
|
||||
.size = perf_event.get_integer<size_t>("size"sv).value_or(0),
|
||||
};
|
||||
} else if (type_string == "free"sv) {
|
||||
} else if (type_string == "kfree"sv) {
|
||||
event.data = Event::FreeData {
|
||||
.ptr = perf_event.get_addr("ptr"sv).value_or(0),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue