profile - Real-time task execution report

Syntax

profile(id,'report')

Description

profile(id,'report') returns the real-time task execution profile report in HTML and graphical plot forms. The report input argument is required. When you select the Profile real-time task execution option in the configuration parameters for your model, and then build and run your model on a processor, this function accesses the report of the process execution.

The HTML report contains the sections described in the following table.

Section HeadingDescription
Worst case task turnaround timesMaximum task turnaround time for each task since model execution started.
Maximum number of concurrent overruns for each taskMaximum number of concurrent task overruns since model execution started.
Analysis of profiling data recorded over nnn seconds.Profiling data was recorded over nnn seconds. The recorded data for task turnaround times and task execution times is presented in the table below this heading.

Task turnaround time is the elapsed time between starting and finishing the task. If the task is not preempted, task turnaround time equals the task execution time.

Task execution time is the time between task start and finish when the task is actually running. It does not include time during which the task may have been preempted by another task.

The execution time calculations do not account for processor time consumed by the scheduler while switching tasks. In cases where preemption occurs, the reported task execution times overestimate the true task execution time.

Task overruns occur when a timer task does not complete before the same task is scheduled to run again. Depending on how you configure the real-time scheduler, a task overrun may be handled as a real-time failure. Alternatively, you might allow a small number of task overruns to accommodate cases where a task occasionally takes longer than normal to complete. If a task overrun occurs, and the same task is scheduled to run again before the first overrun has been cleared, concurrent task overruns are said to have occurred.

Here is a sample of the HTML profiling report—task execution profile report.

See Also

load

run

  


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