This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
uigettoolM-function4
legendcolorbarlayout>createListenersM-subfunction2
legendcolorbarlayout>validateTextObjectsM-subfunction20
legendcolorbarlayout>doParentResizeM-subfunction2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
32
ChildList=get(HandleList,'Chil...
280.010 s100.0%
33
set(0,'ShowHiddenHandles',Temp...
280 s0%
31
set(0,'ShowHiddenHandles','on'...
280 s0%
30
Temp=get(0,'ShowHiddenHandles'...
280 s0%
26
if ~isempty(nonHGHandleList) &...
280 s0%
All other lines  0 s0%
Totals  0.010 s100% 
Children (called functions)
No children
M-Lint results
No M-Lint messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function33
Non-code lines (comments, blank lines)23
Code lines (lines that can run)10
Code lines that did run8
Code lines that did not run2
Coverage (did run/can run)80.00 %
Function listing
   time   calls  line
1 function ChildList=allchild(HandleList)
2 %ALLCHILD Get all object children
3 % ChildList=ALLCHILD(HandleList) returns the list of all children
4 % (including ones with hidden handles) for each handle. If
5 % HandleList is a single element, the output is returned in a
6 % vector. Otherwise, the output is a cell array.
7 %
8 % Example:
9 % get(gca,'children')
10 % %or
11 % allchild(gca)
12 %
13 % See also GET, FINDALL.
14
15 % Loren Dean
16 % Copyright 1984-2009 The MathWorks, Inc.
17 % $Revision: 1.15.4.5 $ $Date: 2009/06/22 14:42:52 $
18
28 19 error(nargchk(1,1,nargin));
20
21 % figure out which, if any, items in list don't refer to hg objects
28 22 hgIdx = ishghandle(HandleList); % index of hghandles in list
28 23 nonHGHandleList = HandleList(~hgIdx);
24
25 % if any of the items in the nonHGHandlList aren't handles, error out
28 26 if ~isempty(nonHGHandleList) && ~all(ishandle(nonHGHandleList)),
27 error('MATLAB:allchild:InvalidHandles', 'Invalid handles passed to ALLCHILD.')
28 end
29
28 30 Temp=get(0,'ShowHiddenHandles');
28 31 set(0,'ShowHiddenHandles','on');
0.01 28 32 ChildList=get(HandleList,'Children');
28 33 set(0,'ShowHiddenHandles',Temp);