Why do some functions like fread, find, sum (etc) not show up in Profiler?
古いコメントを表示
I recently started to use Profiler with the hopes of using it to find performance bottlenecks, etc. Much to my surprise the number of functions and operations that actually show up in Profiler are actually quite small compared to the number I'm actually using in my code. Those listed in the subject line are just a few examples. Can anyone explain why these wouldn't show up in Profiler? Or am I just using it incorrectly?
I started Profiler with:
profile on -history
and started the viewer with:
profile viewer
I also tried looking at the results returned in:
p = profile('info');
But this wasn't any better than what was shown in the viewer.
Please help!
採用された回答
その他の回答 (1 件)
Vishal Rane
2013 年 6 月 5 日
0 投票
I checked what u said in R2013a.
The profile report has the following note at the start :
Note that built-in functions do not appear in this report
4 件のコメント
Robert
2013 年 6 月 5 日
Walter Roberson
2013 年 6 月 5 日
Those other functions are not built-in. For example,
>> which num2str
/Applications/MATLAB_R2013a.app/toolbox/matlab/strfun/num2str.m
>> which fread
built-in (/Applications/MATLAB_R2013a.app/toolbox/matlab/iofun/fread)
Vishal Rane
2013 年 6 月 11 日
From MATLAB Help: A built-in function is part of the MATLAB executable. MATLAB does not implement these functions in the MATLAB language. Although most built-in functions have a .m file associated with them, this file only supplies documentation for the function.
Robert
2013 年 6 月 11 日
カテゴリ
ヘルプ センター および File Exchange で Get Started with MATLAB についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!