This is a static copy of a profile report

Home

scribe.legend.methods>strsize (491 calls, 0.186 sec)
Generated 05-Aug-2011 13:01:41 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/scribe/@scribe/@legend/methods.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
scribe.legend.methods>getsizeinfosubfunction491
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
997
ext = get(t,'extent');
4910.077 s41.2%
990
set(t,'FontSize',fontsize,...
4910.033 s17.6%
989
oldwarn = warning('off'); %#ok
4910.022 s11.8%
988
set(t,'FontUnits','points');
4910.011 s5.9%
979
t=text('Parent',ax,...
140.011 s5.9%
All other lines  0.033 s17.6%
Totals  0.186 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
opaque.doublefunction4910.011 s5.9%
Self time (built-ins, overhead, etc.)  0.175 s94.1%
Totals  0.186 s100% 
Code Analyzer 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
0.01 491 976 ax = double(ax);
0.01 491 977 t = getappdata(ax,'LegendTempText');
0.01 491 978 if isempty(t) || ~ishandle(t)
0.01 14 979 t=text('Parent',ax,...
980 'Units','points',...
981 'Visible','off',...
982 'HandleVisibility','off',...
983 'Editing','off',...
984 'Margin', 0.01,...
985 'Tag','temphackytext');
14 986 setappdata(ax,'LegendTempText',t);
14 987 end
0.01 491 988 set(t,'FontUnits','points');
0.02 491 989 oldwarn = warning('off'); %#ok
0.03 491 990 set(t,'FontSize',fontsize,...
991 'Interpreter',interp,...
992 'FontAngle',fontangle,...
993 'FontWeight',fontweight,...
994 'String',str, ...
995 'FontName',fontname);
996
0.08 491 997 ext = get(t,'extent');
491 998 size = ext(3:4)./fpos(3:4);
491 999 warning(oldwarn);

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