Descriptionscheduler: Add support for tracing scheduler state
This patch adds code for recording the interesting parts of the
TaskQueueManager, RendererSchedulerImpl and RenderSchedulerSelector
classes into a trace. The main bits of state that are captured:
- All tasks in the incoming and work queues.
- Number of tasks in the work queue as a time series.
- The work queue which was selected for execution.
- Scheduler priority both as a time series and snapshots.
- Selector priorities as snapshots.
Sample trace:
https://drive.google.com/file/d/0ByyxMXB38gLDUTFpRzhldmI2Q2c/view?usp=sharing
BUG=391005
Committed: https://crrev.com/c6a4ab056d73a8bc454b6c4fb2591459a7dcd32a
Cr-Commit-Position: refs/heads/master@{#303642}
Patch Set 1 #
Total comments: 40
Patch Set 2 : Review comments. #Patch Set 3 : Constness tweak. #Patch Set 4 : Rebased. #Patch Set 5 : Removed unused function. #
Total comments: 4
Patch Set 6 : Rebased. #Patch Set 7 : Ross's comments. #Patch Set 8 : Small reorganization. #
Total comments: 1
Patch Set 9 : Removed "has_task_queue_manager". #Patch Set 10 : Rebased. #Patch Set 11 : Fix test. #Messages
Total messages: 26 (8 generated)
|