This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
997 | ext = get(t,'extent'); | 491 | 0.077 s | 41.2% |  |
990 | set(t,'FontSize',fontsize,... | 491 | 0.033 s | 17.6% |  |
989 | oldwarn = warning('off'); %#ok | 491 | 0.022 s | 11.8% |  |
988 | set(t,'FontUnits','points'); | 491 | 0.011 s | 5.9% |  |
979 | t=text('Parent',ax,... | 14 | 0.011 s | 5.9% |  |
All other lines | | | 0.033 s | 17.6% |  |
Totals | | | 0.186 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
opaque.double | function | 491 | 0.011 s | 5.9% |  |
Self time (built-ins, overhead, etc.) | | | 0.175 s | 94.1% |  |
Totals | | | 0.186 s | 100% | |
Code Analyzer 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
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.