Browse Source

qcacmn: Record queue depth in scheduler history

The scheduler history feature contains logic to capture the queue depth
at the time of message insertion, but an oversight means this
information is not actually recorded in the scheduler history. Record
the captured queue depth in the scheduler history when a message is
dequeued for processing.

Change-Id: Ia2dd6f641055237b8f9c546077f7b5992c697330
CRs-Fixed: 2332752
Dustin Brown 6 years ago
parent
commit
27d564647e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scheduler/src/scheduler_core.c

+ 1 - 0
scheduler/src/scheduler_core.c

@@ -73,6 +73,7 @@ static void sched_history_start(struct scheduler_msg *msg)
 		.type_id = msg->type,
 		.queue_start_us = msg->queued_at_us,
 		.queue_duration_us = started_at_us - msg->queued_at_us,
+		.queue_depth = msg->queue_depth,
 		.run_start_us = started_at_us,
 	};