This is a static copy of a profile report

Home

graph2dhelper (32 calls, 0.435 sec)
Generated 18-Mar-2011 23:32:10 using cpu time.
M-function in file /Applications/MATLAB_R2010a.app/toolbox/matlab/scribe/graph2dhelper.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
legend>make_legendM-subfunction2
scribe.legend.initM-function12
scribe.legend.methods>set_contextmenuM-subfunction18
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
31
[varargout{1:nargout}] = feval...
200.404 s92.9%
28
feval(varargin{:});
20.031 s7.1%
33
end
220 s0%
32
end
200 s0%
30
else
200 s0%
All other lines  0 s0%
Totals  0.435 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
scribe/private/get_legendable_childrenM-function20.342 s78.6%
scribe/private/createScribeUIMenuEntryM-function180.052 s11.9%
scribe/private/updateLegendMenuToolbarM-function20.031 s7.1%
Self time (built-ins, overhead, etc.)  0.010 s2.4%
Totals  0.435 s100% 
M-Lint results
No M-Lint messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function33
Non-code lines (comments, blank lines)20
Code lines (lines that can run)13
Code lines that did run12
Code lines that did not run1
Coverage (did run/can run)92.31 %
Function listing
   time   calls  line
1 function varargout=graph2dhelper(varargin)
2 %GRAPH2DHELPER Switchyard for private graph2d functions
3
4 % FH=GRAPH2DHELPER(FNAME) returns a function handle to the function FNAME
5 %
6 % [OUT1,OUT1,...]=GRAPH2DHELPER(FNAME,ARG1,ARG2,...) evaluates function
7 % FNAME with arguments ARG1,ARG2,... and returns outputs OUT1,OUT2,...
8 % Legal functions include functions located in graph2d/private directory
9 % and other functions that are on the MATLAB path. Individual arguments
10 % (ARG1, ARG2, etc.) may not be cell arrays (same as with feval).
11 %
12 % GRAPH2DHELPER(FNAME,ARG1,ARG2,...) evaluates FNAME with ARG1,ARG2,...
13 % and returns nothing (errors if FNAME specifies outputs).
14 %
15 % GRAPH2DHELPER(NOUTS,FNAME,ARG1,ARG2,...) evaluates FNAME with
16 % ARG1,ARG2,... and reurns NOUTS outputs.
17
18 % Copyright 1984-2006 The MathWorks, Inc.
19 % $ $ $ $
20
32 21 if nargin==1 && ischar(varargin{1})
10 22 varargout{1} = str2func(varargin{1});
22 23 else
22 24 if nargout<1
2 25 if isnumeric(varargin{1})
26 [varargout{1:varargin{1}}] = feval(varargin{2:end});
2 27 else
0.03 2 28 feval(varargin{:});
2 29 end
20 30 else
0.40 20 31 [varargout{1:nargout}] = feval(varargin{:});
20 32 end
22 33 end