This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
savtonerfunction608
uigettoolfunction174
legendcolorbarlayout>createListenerssubfunction14
legendcolorbarlayout>validateTextObjectssubfunction171
legendcolorbarlayout>doParentResizesubfunction29
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
32
ChildList=get(HandleList,'Chil...
9961.016 s91.2%
30
Temp=get(0,'ShowHiddenHandles'...
9960.033 s2.9%
22
hgIdx = ishghandle(HandleList)...
9960.022 s2.0%
33
set(0,'ShowHiddenHandles',Temp...
9960.011 s1.0%
31
set(0,'ShowHiddenHandles','on'...
9960.011 s1.0%
All other lines  0.022 s2.0%
Totals  1.115 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
legendcolorbarlayout>doLayoutCBsubfunction420.153 s13.7%
scribe.legend.init>changedPossubfunction30 s0%
Self time (built-ins, overhead, etc.)  0.962 s86.3%
Totals  1.115 s100% 
Code Analyzer results
No Code Analyzer 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
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);