I have a GUI which controls an m file. After some user interaction to change settings, the function runs for some time. I want to profile the code to identify areas for improvement, but when i use the profiler tool to run the m file with the GUI, it starts profiling but stops almost immediately once the GUI loads.
How can I use the profiler tool to assess the m file which has the GUI?
For profiling guis I find it works best to set up the gui, type "profile on" in the command window, let the gui do whatever you want to profile, and then type "profile viewer" in the command window.
"matt dash" <n.a@mail.com> wrote in message <gcdl0a$c3f$1@fred.mathworks.com>...
> For profiling guis I find it works best to set up the gui, type "profile on" in the command window, let the gui do whatever you want to profile, and then type "profile viewer" in the command window.
>
>
thanks for this tip matt, I didn't know you could access the profile tool in that way.
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.