MATLAB: MATLAB Profiler – Granularity of Information

MATLABperformanceprofilerundocumented

MATLAB Profiler produces very coarse granularity of performance statistics on a model I'm developing and testing:
  • # of times a routine is called;
  • Total Time, and Self Time.
However no information is provided on other routines, including MATLAB primitives, called. Can this finer grained information be obtained from Profiler?

Best Answer

Use the [undocumented] -detail builtin profiler option, as in: profile on -detail builtin
This works on old Matlab releases as well as new ones.