Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4568a30b authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

BroadcastQueue: misc debugging, fix runnable bug.

Add new per-reciever fields to BroadcastRecord dump information, where
we have both "scheduled" and "terminal" timestamps.  Update legacy
stack to also record these timestamps for consistent dumps.  Update
modern stack to record overall dispatch and finish times.

Add "reason" behind per-process queue runnable calculation, aiding
debugging of why a process might be delayed or paused.  Simplify dump
of per-process queue to omit redundant details.

Fix subtle bug when skipping broadcasts, where we might need to update
sorted runnable list position if we modified the queue.  Consistency
check logic to help identify bugs.

Bug: 249389115
Test: atest FrameworksMockingServicesTests:BroadcastQueueTest
Test: atest FrameworksMockingServicesTests:BroadcastQueueModernImplTest
Change-Id: I73c442f749fba9c461a67debfa871ffcd0dda086
parent a4c77ee3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment