Main Content

Sections

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

Syntax

NthSectionProfile = myExecutionProfile.Sections(N)
numberOfSections = length(myExecutionProfile.Sections)

Description

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

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

myExecutionProfile is a workspace variable generated by a simulation.

Input Arguments

N

Index of code section for which profile data is required

Output Arguments

NthSectionProfile

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

numberOfSections

Number of code sections with profile data

Introduced in R2012b