mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 03:45:24 +00:00
top: consider dead thread with execution time
which executed in the current measurement period but are now dead. Keep the Entry object up to next period, where the recent_execution_time will become 0 since it will not execute definitely. Issue #2638
This commit is contained in:
parent
2a0f940bd7
commit
7c0894159f
@ -119,8 +119,10 @@ struct Trace_subject_registry
|
||||
|
||||
e->update(trace.subject_info(id));
|
||||
|
||||
/* purge dead threads */
|
||||
if (e->info.state() == Genode::Trace::Subject_info::DEAD) {
|
||||
/* remove dead threads which did not run in the last period */
|
||||
if (e->info.state() == Genode::Trace::Subject_info::DEAD &&
|
||||
!e->recent_execution_time) {
|
||||
|
||||
trace.free(e->id);
|
||||
_entries.remove(e);
|
||||
Genode::destroy(alloc, e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user