Profile execution time for functions
Use the Profiler to track execution time. Knowing the execution time of your MATLAB® code helps you to debug and optimize it. For information on the user interface to the Profiler, see Profiling for Improving Performance.
profile
profiles
the execution time for functions. Use action
action
to
start, stop, and restart the Profiler, and view or clear profile statistics.
For example, profile on
starts the Profiler.
profile
starts or restarts the Profiler
with the specified options. For example, action
option1
... optionN
profile resume -history
restarts
the Profiler and records the sequence of function calls.
profile
sets
the specified Profiler options. If the Profiler is on and you specify
one of the options, MATLAB throws an error. To change options,
first specify option1 ... optionN
profile off
, and then specify the
new options.
matlab.codetools.requiredFilesAndProducts
| mlint
| profsave