This is a static copy of a profile reportHome
allchild (996 calls, 1.115 sec)
Generated 05-Aug-2011 13:02:41 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/uitools/allchild.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 |
32 | ChildList=get(HandleList,'Chil... | 996 | 1.016 s | 91.2% |  |
30 | Temp=get(0,'ShowHiddenHandles'... | 996 | 0.033 s | 2.9% |  |
22 | hgIdx = ishghandle(HandleList)... | 996 | 0.022 s | 2.0% |  |
33 | set(0,'ShowHiddenHandles',Temp... | 996 | 0.011 s | 1.0% |  |
31 | set(0,'ShowHiddenHandles','on'... | 996 | 0.011 s | 1.0% |  |
All other lines | | | 0.022 s | 2.0% |  |
Totals | | | 1.115 s | 100% | |
Children (called functions)
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) | 23 |
Code lines (lines that can run) | 10 |
Code lines that did run | 8 |
Code lines that did not run | 2 |
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
0.01 996 19 error(nargchk(1,1,nargin));
20
21 % figure out which, if any, items in list don't refer to hg objects
0.02 996 22 hgIdx = ishghandle(HandleList); % index of hghandles in list
996 23 nonHGHandleList = HandleList(~hgIdx);
24
25 % if any of the items in the nonHGHandlList aren't handles, error out
996 26 if ~isempty(nonHGHandleList) && ~all(ishandle(nonHGHandleList)),
27 error('MATLAB:allchild:InvalidHandles', 'Invalid handles passed to ALLCHILD.')
28 end
29
0.03 996 30 Temp=get(0,'ShowHiddenHandles');
0.01 996 31 set(0,'ShowHiddenHandles','on');
1.02 996 32 ChildList=get(HandleList,'Children');
0.01 996 33 set(0,'ShowHiddenHandles',Temp);