This is a static copy of a profile report

Home

lineseries (678 calls, 0.142 sec)
Generated 05-Aug-2011 13:03:07 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graph2d/lineseries.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
packdfunction12
plot_sourcesfunction6
genfig>plotfeatsubfunction222
genfig>plotflagsubfunction204
plot_powerspecfunction66
genfigAlpha>plotflagsubfunction144
plot1overf>getStatsPlotssubfunction20
genfigRmsfunction4
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
24
plotmgr = graph2dhelper('getpl...
6770.066 s46.2%
23
objs = handle(varargin{2});
6770.033 s23.1%
19
lineseriesmex;
6780.022 s15.4%
30
end
6770.011 s7.7%
25
if ~isempty(plotmgr) &&...
6770.011 s7.7%
All other lines  0 s0%
Totals  0.142 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
graph2dhelperfunction6770.066 s46.2%
graph2d/private/lineseriesmexMEX-file6780 s0%
Self time (built-ins, overhead, etc.)  0.077 s53.8%
Totals  0.142 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function33
Non-code lines (comments, blank lines)19
Code lines (lines that can run)14
Code lines that did run7
Code lines that did not run7
Coverage (did run/can run)50.00 %
Function listing
   time   calls  line
1 function h = lineseries(varargin)
2 %LINESERIES Line plot helper function
3 % This function is an internal helper function for line plots.
4
5 % H = LINESERIES(PARAM1, VALUE1, PARAM2, VALUE2, ...) constructs
6 % a lineseries object, applies the specified parameter-value pairs
7 % and return the result in H.
8 %
9 % LINESERIES('init') will only register the lineseries class and
10 % won't return a lineseries object.
11 %
12 % LINESERIES('event',H) sends a PlotFunctionDone event for objects
13 % H and returns.
14 %
15 % See also: PLOT
16
17 % Copyright 1984-2010 The MathWorks, Inc.
18
0.02 678 19 lineseriesmex;
678 20 if (nargin > 0) && ischar(varargin{1}) % any string as first arg is special
678 21 if strcmp(varargin{1},'event')
22 % adapted code from specgraph/private/plotdoneevent.m
0.03 677 23 objs = handle(varargin{2});
0.07 677 24 plotmgr = graph2dhelper('getplotmanager','-peek');
0.01 677 25 if ~isempty(plotmgr) && ishandle(plotmgr)
26 evdata = graphics.plotevent(plotmgr,'PlotFunctionDone');
27 set(evdata,'ObjectsCreated',objs,'Figure',ancestor(objs(1),'figure'));
28 send(plotmgr,'PlotFunctionDone',evdata);
29 end
0.01 677 30 end
31 else
32 h = double(graph2d.lineseries(varargin{:}));
33 end