瀏覽代碼

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 年之前
父節點
當前提交
27d564647e
共有 1 個文件被更改,包括 1 次插入0 次删除
  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,
 	};