Main Content

report

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

Syntax

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

Description

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.

myExecutionProfile is a workspace variable that you create using getCoderExecutionProfile.

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

Time measurements displayed in seconds or timer ticks.

Default:

  • SIL execution on Windows® — Seconds

  • SIL execution on non-Windows — Timer ticks

  • PIL execution — 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'.

Introduced in R2011b