mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +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
Notes:
sideshowbarker
2024-07-17 18:13:59 +09:00
Author: https://github.com/alimpfard
Commit: a539c261b1
Pull-request: https://github.com/SerenityOS/serenity/pull/20240
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/trflynn89
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