Effacer les filtres
Effacer les filtres

Why do some functions like fread, find, sum (etc) not show up in Profiler?

3 vues (au cours des 30 derniers jours)
Robert
Robert le 5 Juin 2013
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!

Réponse acceptée

Jan
Jan le 11 Juin 2013
Modifié(e) : Jan le 11 Juin 2013
Perhaps the undocumented detail level helps:
profile('on', '-detail', 'builtin')
  3 commentaires
Jan
Jan le 19 Juin 2013
@Robert: TMW usually does not document why a feature is not documented. But the general rul is that all documented features are supported and kept for forward compatibility as far as possible (but unfortuantely not to 100%). So if a feature is under construction (like uitree and uitabgroup, the new HG2 style etc.) the documentation is not made public.
Robert
Robert le 19 Juin 2013
Is this a new feature???

Connectez-vous pour commenter.

Plus de réponses (1)

Vishal Rane
Vishal Rane le 5 Juin 2013
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 commentaires
Vishal Rane
Vishal Rane le 11 Juin 2013
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
Robert le 11 Juin 2013
That is helpful, thank you! But I still don't see that note in the Profiler. This seems to be a major drawback of Profiler, if it does not include built-in functions in its report.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by