Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start Matlab profiler

I switched to Matlab 2012b (from 2011a), but fail to find out how to start the profiler gui in the new matlab gui.

like image 936
Matthias Pospiech Avatar asked Jan 17 '13 15:01

Matthias Pospiech


People also ask

What does the Profiler track in MATLAB?

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 Profiler. profile action profiles the execution time for functions.

What is the Run command in MATLAB?

Click the Run button. MATLAB runs the function using the first run command in the list. For example, click Run to run myfunction using the command result = myfunction(1:10,5) . MATLAB displays the result in the Command Window.


2 Answers

The GUI option is still there, in the editor tab:

enter image description here

You will be able to specify input parameters once the function has crashed ;)

like image 77
Jonas Avatar answered Nov 16 '22 02:11

Jonas


AFAIK, this should still work:

profile viewer

while we're at it, these tweaks should still work, too:

profile -memory on
setpref('profiler', 'showJitLines', true);

I don't have the opportunity to check, but you mean to say that R2012 doesn't have the little button on the top anymore?

like image 21
Rody Oldenhuis Avatar answered Nov 16 '22 03:11

Rody Oldenhuis