This is a static copy of a profile report

Home

scribe.legend.methods (296 calls, 1.202 sec)
Generated 05-Aug-2011 13:02:49 using cpu time.
function 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.legendfunction42
...be.legend.methods>create_legend_itemssubfunction83
scribe.legend.initfunction42
legendcolorbarlayout>doInOutLayoutsubfunction93
legendcolorbarlayout>doBestLegendLayoutsubfunction9
scribe.legend.init>setWidthHeightsubfunction27
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
19
[varargout{1:nargout}] = feval...
2400.743 s61.8%
17
feval(args{:});
560.448 s37.3%
20
end
2400.011 s0.9%
18
else
2400 s0%
16
if nargout == 0
2960 s0%
All other lines  0 s0%
Totals  1.202 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
scribe.legend.methods>get_best_locationsubfunction90.492 s40.9%
scribe.legend.methods>getsizesubfunction1340.208 s17.3%
scribe.legend.methods>set_contextmenusubfunction140.197 s16.4%
...be.legend.methods>create_legend_itemssubfunction140.131 s10.9%
...nd.methods>create_plotchild_listenerssubfunction140.098 s8.2%
scribe.legend.methods>getsizeinfosubfunction140.044 s3.6%
scribe.legend.methods>update_userdatasubfunction140.022 s1.8%
scribe.legend.methods>getfunhansubfunction830 s0%
Self time (built-ins, overhead, etc.)  0.011 s0.9%
Totals  1.202 s100% 
Code Analyzer results
Line numberMessage
15{ A{:} B } can often be replaced by [ A {B}], which can be much faster.
Coverage results
[ Show coverage for parent directory ]
Total lines in function20
Non-code lines (comments, blank lines)8
Code lines (lines that can run)12
Code lines that did run7
Code lines that did not run5
Coverage (did run/can run)58.33 %
Function listing
   time   calls  line
1 function varargout = methods(this,fcn,varargin)
2 %METHODS Methods for legend class
3
4 % Copyright 1984-2010 The MathWorks, Inc.
5 % $Revision: 1.1.6.56 $ $Date: 2010/11/17 11:29:37 $
6
7 % one arg is methods(obj) call
296 8 if nargin==1
9 cls= this.classhandle;
10 m = get(cls,'Methods');
11 varargout{1} = get(m,'Name');
12 return;
13 end
14
296 15 args = {fcn,this,varargin{:}};
296 16 if nargout == 0
0.45 56 17 feval(args{:});
240 18 else
0.74 240 19 [varargout{1:nargout}] = feval(args{:});
0.01 240 20 end

Other subfunctions in this file are not included in this listing.