mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:48:12 +00:00
Kernel: Disable profile timer when the process exits
When profiling a single process we didn't disable the profile timer. enable_profile_timer()/disable_profiler_timer() support nested calls so no special care has to be taken here to only disable the timer when nobody else is using it.
This commit is contained in:
parent
52a4a1ec75
commit
3cafdca868
1 changed files with 3 additions and 1 deletions
|
@ -492,8 +492,10 @@ void Process::finalize()
|
|||
if (is_dumpable()) {
|
||||
if (m_should_dump_core)
|
||||
dump_core();
|
||||
if (m_perf_event_buffer)
|
||||
if (m_perf_event_buffer) {
|
||||
dump_perfcore();
|
||||
TimeManagement::the().disable_profile_timer();
|
||||
}
|
||||
}
|
||||
|
||||
m_threads_for_coredump.clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue