This is a static copy of a profile report

Home

scribe.legend.methods>getsize (2 calls, 0.010 sec)
Generated 28-Feb-2011 19:18:12 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)

Function NameFunction TypeCalls
scribe.legend.methodsM-function2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
656
lsiz = [s.leftspace + s.tokenw...
20 s0%
655
if strcmpi(h.Orientation,'vert...
20 s0%
652
if nargin == 1, s = getsizeinf...
20 s0%
All other lines  0.010 s100.0%
Totals  0.010 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
scribe.legend.methods>getsizeinfoM-subfunction10 s0%
Self time (built-ins, overhead, etc.)  0.010 s100.0%
Totals  0.010 s100% 
M-Lint results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function13
Non-code lines (comments, blank lines)7
Code lines (lines that can run)6
Code lines that did run3
Code lines that did not run3
Coverage (did run/can run)50.00 %
Function listing
   time   calls  line
650 function lsiz = getsize(h,s)
651
2 652 if nargin == 1, s = getsizeinfo(h); end
653
654 % legend size
2 655 if strcmpi(h.Orientation,'vertical')
2 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.