Main Content


Open code execution profiling report and specify display of time measurements.


report(myExecutionProfile, Name1, Value1, Name2, Value2, ...)
report(myExecutionProfile, 'Units', 'Seconds', 'ScaleFactor', '1e-06', 'NumericFormat', '%0.3f')
report(myExecutionProfile, 'baseline', executionProfileBaseline)


When you run a SIL or PIL simulation with code execution profiling enabled, the software generates the workspace variable that you specify in the Workspace variable field of the Configuration Parameters dialog box. For example, myExecutionProfile.

report(myExecutionProfile) opens the code execution profiling report using default display options.

report(myExecutionProfile, Name1, Value1, Name2, Value2, ...) opens the report with display options specified by the name-value character vector pairs.

report(myExecutionProfile, 'Units', 'Seconds', 'ScaleFactor', '1e-06', 'NumericFormat', '%0.3f') displays time in microseconds (10-6 seconds) with a precision of three decimal places.

report(myExecutionProfile, 'baseline', executionProfileBaseline) creates a report that compares execution-time performance against a baseline.

Name-Value PairDetails
'Units', 'Seconds' or 'Units', 'Ticks'

Time measurements displayed in seconds or timer ticks.


  • SIL simulation on Windows® — Seconds

  • SIL simulation on non-Windows — Timer ticks

  • PIL simulation — Seconds, if number of timer ticks per second has been specified by the target connectivity configuration. Otherwise, ticks.

'ScaleFactor', Value

Scale factor for displayed measurements. For example, to display measurements in microseconds, use the name-value pair 'ScaleFactor', '1e-6'.

Value must be a character vector representation of a number that is a power of 10. For example, '1', '1e-6', or '1e-9'. Default value is '1e-9'.

To specify the scale factor, you must also specify 'Units', 'Seconds'.

'NumericFormat', Convention

Numeric format for displayed measurements. Use the decimal convention utilized by the ANSI® C function sprintf, for example, '%1.2f'. Default is '%0.0f'.

To specify the numeric format, you must also specify 'Units', 'Seconds'.

'baseline', executionProfileBaseline

Baseline for performance comparison.

executionProfileBaseline is the workspace variable that contains baseline execution-time metrics

Introduced in R2011b