This is a static copy of a profile report

Home

uigettool (4 calls, 0.021 sec)
Generated 18-Mar-2011 23:32:19 using cpu time.
M-function in file /Applications/MATLAB_R2010a.app/toolbox/matlab/uitools/uigettool.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
scribe/private/updateLegendMenuToolbarM-function4
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
29
if isequal(get(children(i),'Ta...
720.010 s50.0%
21
fig = findobj(allchild(fig),'f...
40.010 s50.0%
32
end
720 s0%
31
end
40 s0%
30
out = [out; children(i)];
40 s0%
All other lines  0 s0%
Totals  0.021 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
findobjM-function40.010 s50.0%
findallM-function40 s0%
allchildM-function40 s0%
Self time (built-ins, overhead, etc.)  0.010 s50.0%
Totals  0.021 s100% 
M-Lint results
Line numberMessage
30The variable 'out' appears to change size on every loop iteration. Consider preallocating for speed.
Coverage results
[ Show coverage for parent directory ]
Total lines in function32
Non-code lines (comments, blank lines)18
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
1 function [out] = uigettool(fig,id)
2 % This function is undocumented and will change in a future release
3
4 % C = UIGETTOOL(H,'GroupName.ComponentName')
5 % H is a vector of toolbar handles or a figure handle
6 % 'GroupName' is the name of the toolbar group
7 % 'ComponentName' is the name of the toolbar component
8 % C is a toolbar component
9 %
10 % See also UITOOLFACTORY
11
12 % Copyright 1984-2007 The MathWorks, Inc.
13 % $Revision: 1.1.6.8 $ $Date: 2008/08/01 12:23:44 $
14
15 % Note: All code here must have fast performance
16 % since this function will be used in callbacks.
4 17 if ~all(ishghandle(fig))
18 error('MATLAB:uigettool:InvalidHandle','Invalid handle.');
19 end
4 20 if length(fig) == 1 && ishghandle(fig,'figure')
0.01 4 21 fig = findobj(allchild(fig),'flat','Type','uitoolbar');
4 22 end
23
4 24 out =[];
4 25 children = findall(fig);
26 % 'toolid' is used by GUIDE GUIs
4 27 for i=1:length(children)
72 28 toolid = getappdata(children(i),'toolid');
0.01 72 29 if isequal(get(children(i),'Tag'), id) || isequal(toolid, id)
4 30 out = [out; children(i)];
4 31 end
72 32 end