Main Content

Sections

Get array of coder.profile.ExecutionTimeSection objects for profiled code sections (MATLAB code generation)

Description

example

NthSectionProfile = myExecutionProfile.Sections(N) returns an coder.profile.ExecutionTimeSection object for the Nth profiled code section.

example

numberOfSections = length(myExecutionProfile.Sections) returns the number of code sections for which profile data is available.

Examples

collapse all

Get the coder.profile.ExecutionTimeSection object for the Nth profiled code section.

NthSectionProfile = myExecutionProfile.Sections(N);

Get the number of code sections for which profile data is available.

numberOfSections = length(myExecutionProfile.Sections)

Input Arguments

collapse all

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

Example: myExecutionProfile

Index of code section for which profile data is required.

Example: N

Output Arguments

collapse all

Object that contains profile information about the code section. You can use the following coder.profile.ExecutionTimeSection methods to retrieve the information:

Number of code sections with profile data

Introduced in R2012b