Main Content

NumCalls

Total number of calls to profiled code section

Description

TotalNumCalls = NthSectionProfile.NumCalls returns the total number of calls to the profiled code section over the entire simulation.

example

Examples

collapse all

To get the total number of calls to the profiled code section over the entire simulation, use the NumCalls property of the NthSectionProfile object.

TotalNumCalls = NthSectionProfile.NumCalls;

Input Arguments

collapse all

The NthSectionProfile is a coder.profile.ExecutionTimeSection object generated by the coder.profile.ExecutionTime property Sections.

Example: NthSectionProfile

Output Arguments

collapse all

The total number of calls to the profiled section of code.

Version History

Introduced in R2012b