开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜