This is a static copy of a profile report

Home

findall (Calls: 266, Time: 1.476 s)
Generated 16-Jul-2020 17:08:34 using performance time.
function in file /Applications/MATLAB_R2020a.app/toolbox/matlab/graphics/objectsystem/findall.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
firePrintBehaviorfunction22
printing/private/printjobContentChangesfunction12
...rintEnhanceTextures.needEnhanceOutputclass method24
...tChanges>localUpdateSelectionStatesubfunction12
printing/.../printingAxesTickLabelUpdatefunction12
printing/private/adjustbackgroundfunction44
...job>mlprintjob.modifyUnitsForPrintclass method48
...b.modifyUnitsForPrint/getObjWithUnitsnested function60
updateLegendMenuToolbarfunction16
uigettoolfunction16
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
41
ObjList=findobj(HandleList,var...
2661.291 s87.5%
37
c = onCleanup(showHiddenHandle...
2660.092 s6.2%
48
end
2660.066 s4.4%
46
if isequal(ObjList,-1)
2660.009 s0.6%
23
if ~isa(HandleList,'matlab.gra...
2660.005 s0.3%
All other lines  0.013 s0.9%
Totals  1.476 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
...nPane>AnnotationPane.doGetChildrenclass method9040.170 s11.5%
...nPane>AnnotationPane.getParentImplclass method9800.075 s5.1%
...>showHiddenHandlesToFindAllHandlessubfunction2660.063 s4.3%
...set(rootobj,'ShowHiddenHandles',Temp)anonymous function2660.041 s2.8%
Legend.doGetChildrenfunction3280.040 s2.7%
Legend.Legend>Legend.get.Unitsclass method400.014 s1.0%
...er>AxesLayoutManager.getParentImplclass method3500.001 s0.1%
Self time (built-ins, overhead, etc.)  1.071 s72.6%
Totals  1.476 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function48
Non-code lines (comments, blank lines)32
Code lines (lines that can run)16
Code lines that did run12
Code lines that did not run4
Coverage (did run/can run)75.00 %
Function listing
time 
Calls 
 line
   1 
function ObjList=findall(HandleList,varargin)
   2 
%FINDALL find all objects.
   3 
%   ObjList=FINDALL(HandleList) returns the list of all objects 
   4 
%   beneath the Handles passed in.  FINDOBJ is used and all objects
   5 
%   including those with HandleVisibility set to 'off' are found.
   6 
%   FINDALL is called exactly as FINDOBJ is called.  For instance,
   7 
%   ObjList=findall(HandleList,Param1,Val1,Param2,Val2, ...).
   8 
%  
   9 
%   Example:
  10 
%     plot(1:10)
  11 
%     xlabel xlab
  12 
%     a=findall(gcf)
  13 
%     b=findobj(gcf)
  14 
%     c=findall(b,'Type','text') % return the xlabel handle twice
  15 
%     d=findobj(b,'Type','text') % can't find the xlabel handle
  16 
%
  17 
%   See also ALLCHILD, FINDOBJ.
  18 

  19 
%   Loren Dean
  20 
%   Copyright 1984-2017 The MathWorks, Inc.
  21 

  22 

  0.005 
    266 
  23
if ~isa(HandleList,'matlab.graphics.Graphics') && nnz(~ishghandle(HandleList)) 
  24 
    error(message('MATLAB:findall:InvalidHandles'));
< 0.001 
    266 
  25
end 
  26 
    
< 0.001 
    266 
  27
rootobj = 0; 
  0.003 
    266 
  28
if ~isempty( HandleList ) 
  0.004 
    266 
  29
    rootobj = groot; 
< 0.001 
    266 
  30
end 
  31 

  32 
%Set up an onCleanup object that would restore the root global state after
  33 
%we do a findobj. We are explicitly making sure that there are no
  34 
%nested/anonymous functions involved here because findall executed through
  35 
%a timer callback is causing unexpected failure modes with onCleanup.
  36 
%Making a sub-function return an anonymous function handle is safer here.
  0.092 
    266 
  37
c = onCleanup(showHiddenHandlesToFindAllHandles(rootobj)); 
  38 

  39 

< 0.001 
    266 
  40
try 
  1.291 
    266 
  41
  ObjList=findobj(HandleList,varargin{:}); 
  42 
catch ex %#ok
  43 
  ObjList=-1;
< 0.001 
    266 
  44
end 
  45 

  0.009 
    266 
  46
if isequal(ObjList,-1) 
  47 
  error(message('MATLAB:findall:InvalidParameter'));
  0.066 
    266 
  48
end 

Other subfunctions in this file are not included in this listing.