This is a static copy of a profile report

Home

subplot>createListeners (155 calls, 0.251 sec)
Generated 05-Aug-2011 13:01:36 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/graph2d/subplot.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
subplot>addAxesToGridsubfunction155
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
542
list = [ ...
1550.120 s47.8%
561
setappdata(double(ax), 'Subplo...
1550.044 s17.4%
564
end
1550.011 s4.3%
560
if ~isappdata(double(ax), 'Sub...
9290.011 s4.3%
559
ax = axlisth(k);
9290.011 s4.3%
All other lines  0.055 s21.7%
Totals  0.251 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
opaque.doublefunction10840.033 s13.0%
Self time (built-ins, overhead, etc.)  0.219 s87.0%
Totals  0.251 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 run12
Code lines that did not run2
Coverage (did run/can run)85.71 %
Function listing
   time   calls  line
535 function createListeners(p, axlisth)
155 536 setappdata(p, 'SubplotListeners', [])
155 537 fig = p;
155 538 if ~isequal(get(fig, 'Type'), 'figure')
539 fig = ancestor(fig, 'figure');
540 end
541
0.12 155 542 list = [ ...
543 handle.listener(axlisth, findprop(axlisth(1), 'Units'), ... % must be first
544 'PropertyPostSet', @axesUnitsPostSet);
545 handle.listener(axlisth, findprop(axlisth(1), 'Units'), ...
546 'PropertyPreSet', @axesUnitsPreSet);
547 handle.listener(axlisth, findprop(axlisth(1), 'Position'), ...
548 'PropertyPostSet', @axesMoved);
549 handle.listener(axlisth, findprop(axlisth(1), 'ActivePositionProperty'), ...
550 'PropertyPreSet', @axesMoved);
551 handle.listener(axlisth, findprop(axlisth(1), 'Parent'), ...
552 'PropertyPreSet', @axesMoved);
553 handle.listener(axlisth, 'AxisInvalidEvent', ...
554 {@subplotlayoutInvalid, p});
555 handle.listener(handle(fig), 'FigureUpdateEvent', ...
556 {@subplotlayout, p})];
557
0.01 155 558 for k = 1 : length(axlisth)
0.01 929 559 ax = axlisth(k);
0.01 929 560 if ~isappdata(double(ax), 'SubplotDeleteListener')
0.04 155 561 setappdata(double(ax), 'SubplotDeleteListener', ...
562 handle.listener(ax, 'ObjectBeingDestroyed', ...
563 @axesDestroyed));
0.01 155 564 end
929 565 end
155 566 setappdata(p, 'SubplotListeners', list)
155 567 end

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