This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
legendcolorbarlayout>doInOutLayoutsubfunction165
scribe.legend.methods>update_userdatasubfunction28
scribe.legend.init>setWidthHeightsubfunction27
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
192
if ~isempty(h.Axes) &&...
2200.033 s100.0%
198
end
550 s0%
195
if ~isequal(oldPos,axPos)
550 s0%
194
axPos = get(h.Axes,'Position')...
550 s0%
193
oldPos = getappdata(double(h.A...
550 s0%
All other lines  0 s0%
Totals  0.033 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
opaque.doublefunction2750.011 s33.3%
Self time (built-ins, overhead, etc.)  0.022 s66.7%
Totals  0.033 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function8
Non-code lines (comments, blank lines)1
Code lines (lines that can run)7
Code lines that did run5
Code lines that did not run2
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.