This is a static copy of a profile report

Home

allchild (156 calls, 0.252 sec)
Generated 14-Nov-2016 07:47:17 using cpu time.
function in file /usr/local/MATLAB/MATLAB_Production_Server/R2015a/toolbox/matlab/uitools/allchild.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...rnatePrintPath>LocalFindContainerssubfunction12
graphics/private/adjustbackgroundfunction144
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
38
ChildList=get(HandleList,'Chil...
1560.101 s40.0%
37
c = onCleanup(@()set(rootobj,'...
1560.050 s20.0%
34
Temp=get(rootobj,'ShowHiddenHa...
1560.020 s8.0%
35
set(rootobj,'ShowHiddenHandles...
1560.010 s4.0%
24
nonHGHandleList = HandleList(~...
1560.010 s4.0%
All other lines  0.060 s24.0%
Totals  0.252 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
onCleanup>onCleanup.onCleanupsubfunction1560.040 s16.0%
onCleanup>onCleanup.deletesubfunction1560.020 s8.0%
...set(rootobj,'ShowHiddenHandles',Temp)anonymous function1560 s0%
uitools/private/allchildRootHelperfunction1560 s0%
Self time (built-ins, overhead, etc.)  0.192 s76.0%
Totals  0.252 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function38
Non-code lines (comments, blank lines)27
Code lines (lines that can run)11
Code lines that did run9
Code lines that did not run2
Coverage (did run/can run)81.82 %
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 
%       h_gca = gca;
  10 
%       h_gca.Children
  11 
%           %or
  12 
%       allchild(gca)
  13 
%
  14 
%   See also GET, FINDALL.
  15 

  16 
%   Loren Dean
  17 
%   Copyright 1984-2014 The MathWorks, Inc.
  18 
%    
  19 

  0.01 
    156 
  20 
narginchk(1,1); 
  21 

  22 
% figure out which, if any, items in list don't refer to hg objects
  0.01 
    156 
  23 
hgIdx = ishghandle(HandleList); % index of hghandles in list 
  0.01 
    156 
  24 
nonHGHandleList = HandleList(~hgIdx);  
  25 

  26 
% if any of the items in the nonHGHandlList aren't handles, error out
    156 
  27 
if ~isempty(nonHGHandleList) && ~all(ishandle(nonHGHandleList)), 
  28 
  error(message('MATLAB:allchild:InvalidHandles'))
  29 
end  
  30 

  31 
% establish the root object
    156 
  32 
rootobj = allchildRootHelper(HandleList); 
  33 

  0.02 
    156 
  34 
Temp=get(rootobj,'ShowHiddenHandles'); 
  0.01 
    156 
  35 
set(rootobj,'ShowHiddenHandles','on'); 
  36 
% Create protected cleanup
  0.05 
    156 
  37 
c = onCleanup(@()set(rootobj,'ShowHiddenHandles',Temp)); 
  0.10 
    156 
  38 
ChildList=get(HandleList,'Children');