Programming and Data Types |
 |
Measuring Performance
One way to improve the performance of your M-files is measuring performance using profiling tools. MATLAB provides the M-file Profiler, a graphical user interface that is based on the results returned by the profile
function. Use the Profiler to help you determine where you can modify your code to make performance improvements. This section covers the following topics:
- What Is Profiling?--Profiling assesses where time is being spent in your M-code.
- The Profiler--A graphical user interface for viewing where the time is being spent in your M-code. The Profiler allows you to best take advantage of MATLAB tools described in Performance Acceleration.
- The profile Function--The function on which the Profiler is based,
profile
, offers a few features not included in the Profiler, including saving results of the profile
function to a file.
| Program 4 -- Tic-Tac-Toe | | What Is Profiling? |  |