diff options
Diffstat (limited to 'Kernel/init.cpp')
-rw-r--r-- | Kernel/init.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp index 5c13864361..5e21279d2e 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -246,7 +246,7 @@ void init_stage2(void*) FinalizerTask::spawn(); PCI::initialize(); - + auto boot_profiling = kernel_command_line().is_boot_profiling_enabled(); auto is_text_mode = kernel_command_line().is_text_mode(); if (is_text_mode) { dbgln("Text mode enabled"); @@ -319,6 +319,12 @@ void init_stage2(void*) } thread->set_priority(THREAD_PRIORITY_HIGH); + if (boot_profiling) { + dbgln("Starting full system boot profiling"); + auto result = Process::current()->sys$profiling_enable(-1); + VERIFY(!result.is_error()); + } + NetworkTask::spawn(); Process::current()->sys$exit(0); |