mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Kernel+LibC: Add support for filtering profiling events
This adds the -t command-line argument for the profile tool. Using this argument you can filter which event types you want in your profile.
This commit is contained in:
parent
8b2ace0326
commit
572bbf28cc
Notes:
sideshowbarker
2024-07-18 17:45:43 +09:00
Author: https://github.com/gunnarbeutner
Commit: 572bbf28cc
Pull-request: https://github.com/SerenityOS/serenity/pull/7246
Reviewed-by: https://github.com/tomuta
10 changed files with 72 additions and 33 deletions
|
@ -287,7 +287,7 @@ void init_stage2(void*)
|
|||
|
||||
if (boot_profiling) {
|
||||
dbgln("Starting full system boot profiling");
|
||||
auto result = Process::current()->sys$profiling_enable(-1);
|
||||
auto result = Process::current()->sys$profiling_enable(-1, ~0ull);
|
||||
VERIFY(!result.is_error());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue