This is a static copy of a profile reportHome
scribe.legend.methods>getsize (22 calls, 0.083 sec)
Generated 18-Mar-2011 23:33:09 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 |
652 | if nargin == 1, s = getsizeinf... | 22 | 0.083 s | 100.0% |  |
656 | lsiz = [s.leftspace + s.tokenw... | 22 | 0 s | 0% |  |
655 | if strcmpi(h.Orientation,'vert... | 22 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.083 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
scribe.legend.methods>getsizeinfo | M-subfunction | 20 | 0.083 s | 100.0% |  |
Self time (built-ins, overhead, etc.) | | | 0 s | 0% |  |
Totals | | | 0.083 s | 100% | |
M-Lint 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.08 22 652 if nargin == 1, s = getsizeinfo(h); end
653
654 % legend size
22 655 if strcmpi(h.Orientation,'vertical')
22 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.