This is a static copy of a profile reportHome
scribe.legend.methods>getsize (143 calls, 0.219 sec)
Generated 05-Aug-2011 13:02:58 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 |
652 | if nargin == 1, s = getsizeinf... | 143 | 0.186 s | 85.0% |  |
656 | lsiz = [s.leftspace + s.tokenw... | 143 | 0.033 s | 15.0% |  |
655 | if strcmpi(h.Orientation,'vert... | 143 | 0 s | 0% |  |
All other lines | | | 0.000 s | 0.0% |  |
Totals | | | 0.219 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
scribe.legend.methods>getsizeinfo | subfunction | 129 | 0.186 s | 85.0% |  |
Self time (built-ins, overhead, etc.) | | | 0.033 s | 15.0% |  |
Totals | | | 0.219 s | 100% | |
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 13 |
Non-code lines (comments, blank lines) | 7 |
Code lines (lines that can run) | 6 |
Code lines that did run | 3 |
Code lines that did not run | 3 |
Coverage (did run/can run) | 50.00 % |
Function listing
time calls line
650 function lsiz = getsize(h,s)
651
0.19 143 652 if nargin == 1, s = getsizeinfo(h); end
653
654 % legend size
143 655 if strcmpi(h.Orientation,'vertical')
0.03 143 656 lsiz = [s.leftspace + s.tokenwidth + s.tokentotextspace + max(s.strsizes(:,1)) + s.rightspace,...
657 s.topspace + sum(s.strsizes(:,2)) + (length(h.String) - 1)*s.rowspace + s.botspace];
658 else
659 lsiz = [s.leftspace + (s.tokenwidth*length(h.String)) + (s.tokentotextspace*length(h.String)) + ...
660 (length(h.String) - 1)*s.colspace + sum(s.strsizes(:,1)) + s.rightspace,...
661 s.topspace + max(s.strsizes(:,2)) + s.rowspace + s.botspace];
662 end
Other subfunctions in this file are not included in this listing.