This is a static copy of a profile report

Home

scribe.legend.methods (43 calls, 0.259 sec)
Generated 18-Mar-2011 23:32:58 using cpu time.
M-function 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.legendM-function6
...be.legend.methods>create_legend_itemsM-subfunction11
scribe.legend.initM-function6
legendcolorbarlayout>doInOutLayoutM-subfunction20
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
17
feval(args{:});
80.166 s64.0%
19
[varargout{1:nargout}] = feval...
350.083 s32.0%
15
args = {fcn,this,varargin{:}};
430.010 s4.0%
20
end
350 s0%
18
else
350 s0%
All other lines  0 s0%
Totals  0.259 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
scribe.legend.methods>getsizeM-subfunction220.083 s32.0%
scribe.legend.methods>set_contextmenuM-subfunction20.073 s28.0%
...be.legend.methods>create_legend_itemsM-subfunction20.062 s24.0%
...nd.methods>create_plotchild_listenersM-subfunction20.021 s8.0%
scribe.legend.methods>update_userdataM-subfunction20.010 s4.0%
scribe.legend.methods>getsizeinfoM-subfunction20 s0%
scribe.legend.methods>getfunhanM-subfunction110 s0%
Self time (built-ins, overhead, etc.)  0.010 s4.0%
Totals  0.259 s100% 
M-Lint 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-2009 The MathWorks, Inc.
5 % $Revision: 1.1.6.53 $ $Date: 2009/09/03 05:25:26 $
6
7 % one arg is methods(obj) call
43 8 if nargin==1
9 cls= this.classhandle;
10 m = get(cls,'Methods');
11 varargout{1} = get(m,'Name');
12 return;
13 end
14
0.01 43 15 args = {fcn,this,varargin{:}};
43 16 if nargout == 0
0.17 8 17 feval(args{:});
35 18 else
0.08 35 19 [varargout{1:nargout}] = feval(args{:});
35 20 end

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