Model Execution Profiling Results

This report contains following sections:

Task overrun status

Analysis of profiling data

Task Overrun Status

Task overrun status since model execution started. Task overrun status updates continually while the model executes. After the task overrun status flag is set to 1, it is not cleared during the model execution.

TaskOverrun
Base-RateNo
Sub-Rate 1No
Sub-Rate 2No

Analysis of Profiling Data

Execution profiling data was recorded during the 279.985 ms of the model execution starting at time t = 0. The profiling timer resolution is 17.777 ns. The data recorded for task turnaround times and task execution times is presented in the following table.

TaskMaximum turnaround timeAverage turnaround timeMaximum execution timeAverage execution timeAverage sample time
Base-Rate 3.520 ýs at t = 0 s 1.037 ýs 3.520 ýs at t = 0 s 1.037 ýs 10.000 ms
Sub-Rate 1 12.226 ms at t = 6.560 ýs 12.226 ms 12.226 ms at t = 6.560 ýs 12.225 ms 19.999 ms
Sub-Rate 2 21.031 ms at t = 12.234 ms 21.030 ms 8.804 ms at t = 12.234 ms 8.804 ms 39.997 ms

Values shown as N/A (Not Available) may be caused by one of the following reasons: not enough data was collected or the base rate and sub-rate 1 have been combined.

Task overrun occurs when a timer task does not complete before that same task is scheduled to run again. In such a case, the running task instance is allowed to complete and the following task instance is ignored. Depending on model settings, a task overrun may be reported or handled by a custom function.

Task turnaround time is the elapsed time between the start and finish of the task. If the task is not pre-empted, then the task turnaround time is equal to the task execution time. Task turnaround times may vary from one instance to another. Some typical reasons for task turnaround time variations are: preemption by higher-priority tasks, cache architecture effects, conditional execution paths, and waiting for an unavailable resource.

Task execution time is that part of the time between the task start and finish when the task is actually running and is not preempted by another task. Task execution time is equal to task turnaround time if the task is never preempted.

The task execution time cannot be measured directly, but is inferred from the task start and finish times and the intervening periods during which it was preempted by another task. In performing these calculations, processor time consumed by the scheduler while switching tasks is not considered. In cases where preemption has occurred, the reported task execution times overestimate the true values.

Task sample time is the time between two consecutive executions of the same task. The difference between the measured task sample time and the task sample time specified in the model may be caused by overrunning.

 

 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS
 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS