Main Content

report

Open code execution profiling report and specify display of time measurements (MATLAB code generation)

Description

example

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

example

report(myExecutionProfile, name-value pair) opens the report with display options specified by the name-value character vector pairs.

Examples

collapse all

To create a report that displays time in microseconds (10-6 seconds) with a precision of three decimal places, select options by using name-value pairs.

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

To create a report that compares execution-time performance against a baseline, use the baseline option.

report(myExecutionProfile, ...
    'baseline', executionProfileBaseline)

Input Arguments

collapse all

The myExecutionProfile is a workspace variable that you create by using the getCoderExecutionProfile function.

Example: myExecutionProfile

Name-Value Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example: 'Units','Seconds'

Time measurements displayed in seconds or timer ticks.

Example: 'Units','Seconds'

To display measurements in microseconds, use a scale factor name-value pair 'ScaleFactor', '1e-6'. The 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'.

Example: 'ScaleFactor','1e-9'

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'.

Example: 'NumericFormat','%0.0f'

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

Example: 'baseline',executionProfileBaseline

Introduced in R2011b