This is a static copy of a profile report

Home

scribe.legend.methods>strsize (77 calls, 0.062 sec)
Generated 18-Mar-2011 23:32:32 using cpu time.
M-subfunction in file /Applications/MATLAB_R2010a.app/toolbox/matlab/scribe/@scribe/@legend/methods.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
scribe.legend.methods>getsizeinfoM-subfunction77
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
999
warning(oldwarn);
770.021 s33.3%
997
ext = get(t,'extent');
770.021 s33.3%
990
set(t,'FontSize',fontsize,...
770.010 s16.7%
998
size = ext(3:4)./fpos(3:4);
770 s0%
989
oldwarn = warning('off'); %#ok
770 s0%
All other lines  0.010 s16.7%
Totals  0.062 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
opaque.doubleM-function770 s0%
Self time (built-ins, overhead, etc.)  0.062 s100.0%
Totals  0.062 s100% 
M-Lint results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function26
Non-code lines (comments, blank lines)14
Code lines (lines that can run)12
Code lines that did run12
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
   time   calls  line
974 function size=strsize(ax,fpos,fontname,fontsize,fontangle,fontweight,interp,str)
975
77 976 ax = double(ax);
77 977 t = getappdata(ax,'LegendTempText');
77 978 if isempty(t) || ~ishandle(t)
2 979 t=text('Parent',ax,...
980 'Units','points',...
981 'Visible','off',...
982 'HandleVisibility','off',...
983 'Editing','off',...
984 'Margin', 0.01,...
985 'Tag','temphackytext');
2 986 setappdata(ax,'LegendTempText',t);
2 987 end
77 988 set(t,'FontUnits','points');
77 989 oldwarn = warning('off'); %#ok
0.01 77 990 set(t,'FontSize',fontsize,...
991 'Interpreter',interp,...
992 'FontAngle',fontangle,...
993 'FontWeight',fontweight,...
994 'String',str, ...
995 'FontName',fontname);
996
0.02 77 997 ext = get(t,'extent');
77 998 size = ext(3:4)./fpos(3:4);
0.02 77 999 warning(oldwarn);

Other subfunctions in this file are not included in this listing.