NumCalls - Total number of calls to profiled code section - MATLAB (original) (raw)

Total number of calls to profiled code section

Syntax

Description

[TotalNumCalls](#mw%5F491b2797-3d92-49f2-9883-739b51e0d562) = [NthSectionProfile](#mw%5F57cabfb5-753b-4cba-8c16-4d99bb20f7c3).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 theNthSectionProfile object.

TotalNumCalls = NthSectionProfile.NumCalls;

Input Arguments

collapse all

The NthSectionProfile is acoder.profile.ExecutionTimeSection object generated by thecoder.profile.ExecutionTime propertySections.

Example: NthSectionProfile

Output Arguments

collapse all

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

Version History

Introduced in R2012b