This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
999 | warning(oldwarn); | 77 | 0.021 s | 33.3% |  |
997 | ext = get(t,'extent'); | 77 | 0.021 s | 33.3% |  |
990 | set(t,'FontSize',fontsize,... | 77 | 0.010 s | 16.7% |  |
998 | size = ext(3:4)./fpos(3:4); | 77 | 0 s | 0% |  |
989 | oldwarn = warning('off'); %#ok | 77 | 0 s | 0% |  |
All other lines | | | 0.010 s | 16.7% |  |
Totals | | | 0.062 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
opaque.double | M-function | 77 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0.062 s | 100.0% |  |
Totals | | | 0.062 s | 100% | |
M-Lint results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 26 |
Non-code lines (comments, blank lines) | 14 |
Code lines (lines that can run) | 12 |
Code lines that did run | 12 |
Code lines that did not run | 0 |
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.