mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 09:04:53 +00:00
Kernel: Reset profiling state on exec() (but keep it going)
We now log the new executable on exec() and throw away all the samples we've accumulated so far. But profiling keeps going.
This commit is contained in:
@@ -1015,6 +1015,9 @@ int Process::do_exec(NonnullRefPtr<FileDescription> main_program_description, Ve
|
||||
kprintf("Process %u (%s) exec'd %s @ %p\n", pid(), name().characters(), path.characters(), tss.eip);
|
||||
#endif
|
||||
|
||||
if (is_profiling())
|
||||
Profiling::did_exec(path);
|
||||
|
||||
new_main_thread->set_state(Thread::State::Skip1SchedulerPass);
|
||||
big_lock().force_unlock_if_locked();
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user