Text-only
Table of Contents (
frame
/
no frame
)
(23) Profiling M-files
Profiling M-files
Matlab Profiler
Allows you to evaluate how much computation time each line of an M-file uses
Steps to profile
Turn profiler on
Call M-file
Report Results
Turn profiler off
command
:
profile keyword
where keywords are:
func_name
: start profiling for the specified function name
on,off,done,reset
to control profiler's operation
viewer
to display a summary report for the M-file being profiled
try:
>> profile on
>> bench
>> profile viewer
>> profile off
Profiling_M-files.src last modified Feb 11, 2014
Introduction
Table of Contents
(
frame
/
no frame
)
Printable
(single file)
© Dartmouth College