MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

The Profile Summary report presents this information.


Column Description
Function
Name

List of all the functions called by the profiled code. Initially the functions
appear in order of time they took to process.
Calls Number of times the profiled code called the function.
Total Time Total time spent in a function, including all accessed child functions, in
seconds. The time for a function includes time spent in child functions.
The Profiler itself takes some time, which is included in the results. The
total time can be zero for files whose run time is inconsequential.
Self Time Total time in seconds spent in a function, excluding time spent in any
child functions. Self time also includes some overhead resulting from the
process of profiling.
Total Time
Plot

Graphic display showing self time compared to total time.

In the summary report, you can:



  • Print the report, by clicking the print button.

  • Get more detailed information about a particular function by clicking its name in the
    Function Name column. For more information, see “Profile Detail Report” on page
    28-9.

  • Sort by a given column by clicking the name of the column. For example, click the
    Function Name link to sort the functions alphabetically. Initially the results appear in
    order by Total Time.


Profile Detail Report


The Profile Detail report shows profiling results for a function that MATLAB called while
profiling.


To open the Profile Detail report, click a function name in the Profile Summary report. To


return to the Profile Summary report from the Profile Detail report, click in the toolbar
of the Profile window.


The header of the Profile Detail report contains this information.


Profile to Improve Performance
Free download pdf