This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
542 | list = [ ... | 155 | 0.120 s | 47.8% |  |
561 | setappdata(double(ax), 'Subplo... | 155 | 0.044 s | 17.4% |  |
564 | end | 155 | 0.011 s | 4.3% |  |
560 | if ~isappdata(double(ax), 'Sub... | 929 | 0.011 s | 4.3% |  |
559 | ax = axlisth(k); | 929 | 0.011 s | 4.3% |  |
All other lines | | | 0.055 s | 21.7% |  |
Totals | | | 0.251 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
opaque.double | function | 1084 | 0.033 s | 13.0% |  |
Self time (built-ins, overhead, etc.) | | | 0.219 s | 87.0% |  |
Totals | | | 0.251 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 33 |
Non-code lines (comments, blank lines) | 19 |
Code lines (lines that can run) | 14 |
Code lines that did run | 12 |
Code lines that did not run | 2 |
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.