This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
scribe.legend.methodsfunction134
scribe.legend.methods>get_best_locationsubfunction9
Lines where the most time was spent

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

Function NameFunction TypeCallsTotal Time% TimeTime Plot
scribe.legend.methods>getsizeinfosubfunction1290.186 s85.0%
Self time (built-ins, overhead, etc.)  0.033 s15.0%
Totals  0.219 s100% 
Code Analyzer 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
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.