This is a static copy of a profile reportHome
scribe.legend.init>computePos (220 calls, 0.033 sec)
Generated 05-Aug-2011 13:01:58 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/scribe/@scribe/@legend/init.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 |
192 | if ~isempty(h.Axes) &&... | 220 | 0.033 s | 100.0% |  |
198 | end | 55 | 0 s | 0% |  |
195 | if ~isequal(oldPos,axPos) | 55 | 0 s | 0% |  |
194 | axPos = get(h.Axes,'Position')... | 55 | 0 s | 0% |  |
193 | oldPos = getappdata(double(h.A... | 55 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.033 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
opaque.double | function | 275 | 0.011 s | 33.3% |  |
Self time (built-ins, overhead, etc.) | | | 0.022 s | 66.7% |  |
Totals | | | 0.033 s | 100% | |
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 8 |
Non-code lines (comments, blank lines) | 1 |
Code lines (lines that can run) | 7 |
Code lines that did run | 5 |
Code lines that did not run | 2 |
Coverage (did run/can run) | 71.43 % |
Function listing
time calls line
191 function computePos(hProp,eventData,h) %#ok
0.03 220 192 if ~isempty(h.Axes) && isempty(getappdata(double(h.Axes),'inLayout'))
55 193 oldPos = getappdata(double(h.Axes),'LegendComputePosCache');
55 194 axPos = get(h.Axes,'Position');
55 195 if ~isequal(oldPos,axPos)
196 legendcolorbarlayout(h.Axes,'layoutNoPixelBounds');
197 end
55 198 end
Other subfunctions in this file are not included in this listing.