Main Content

Sections

Get array of coder.profile.ExecutionTimeSection objects for profiled code sections

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

myExecutionProfile is a workspace variable generated by a simulation.

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:

The numberOfSections is the number of code sections with profile data.

Version History

Introduced in R2012b