开发者

Embedded Matlab - testing for bottlenecks

开发者 https://www.devze.com 2023-02-05 04:12 出处:网络
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

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

精彩评论

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