Main Content

Task Execution Report

Display summary of task execution performance and core usage metrics following model simulation or execution on processor

Since R2021b

Description

The Task Execution Report tool displays summaries of the task executions and core usage of the processor. You can use the report following model simulation or following execution on a hardware processor.

This tool displays these values:

  • Total executions per task.

  • Minimum, mean, maximum, and standard deviation (SD) of execution times per task.

  • Minimum, mean, and maximum turnaround times per task.

  • Total and percentage of dropped task instances.

  • Total and percentage of overrun task instances.

  • Task distribution per processor core.

In this tool, you can open the SoC Blockset Overrun Inspector subwindow, which has these features:

  • Time instance when the task should have run.

  • Indication if the task overran resulted in a task drop.

  • Filter switch to Show only dropped tasks for a more focused analysis.

Using the overrun inspector window, you can also analyze each overran task instance by examining a detailed execution timing and core usage plots in the vicinity of the overran (indicated by a dasher vertical line). You can use the filter switch to Show only dropped tasks for a more focused analysis.

Task execution report main window

Open the Task Execution Report

  • Simulink® Toolstrip: On the System on Chip tab, click Execution Report.

Examples

expand all

View the execution data for an SoC Blockset model using the Task Execution Report tool. The task_execution_report_top_model model contains three timer-driven tasks that execute over two processor cores. Run the model.

load_system('task_execution_report_top_model.slx');
sim('task_execution_report_top_model');

Open the Task Execution Report tool by clicking Execution Report on the System on Chip tab. The tool shows the summary of data, including the execution time, turnaround time, dropped tasks, and task overrun, for each task. The tool also shows the usage statistics for each processor core. This figure shows a snapshot of the tool.

ter_task_execution_report.png

In this case, the tool shows that Task1 and Task2 compete for resources on Core 0. Task 2, the lower priority task, gets dropped 32% of the time with 99.6% overrun. Examine the overruns by clicking the Analysis of the Task Overruns icon to open the Overrun Inspector tool. This figure shows the Overrun Inspector window.

ter_overrun_display.png

View a histogram of the task execution over the course of a simulation or hardware execution. To view the histogram, select a task and click Histogram of Task Execution Times icon. This figure shows the execution time of Task 1.

View a pie chart of the core utilization over the course of a simulation or hardware execution by clicking the Chart of the Core Usage icon. This figure shows the core usage of Core 1.

Version History

Introduced in R2021b