Embedded Matlab - testing for bottlenecks
I have an embedded Matlab function that itself calls other embedded Matlab functions and which also calls mex functions. Where can I find information about how to test blocks of this code for the time it takes to execute? Ideally there is something like tic
toc
that I can stick before and after a block in order to determine how long it takes to execute. And perhaps tic
toc
even works, but I don't 开发者_如何学Goknow if I should trust it.
Use the built in profiler:
http://www.mathworks.com/help/techdoc/ref/profile.html
精彩评论