This is a static copy of a profile report

Home

findall (1275 calls, 1.268 sec)
Generated 05-Aug-2011 13:01:33 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/findall.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
graphics/private/preparepointersfunction40
graphics/private/fireprintbehaviorfunction80
graphics/private/prepareuifunction40
graphics/private/preparehgfunction320
graphics/private/restorehgfunction40
graphics/private/clofunction243
scribe.legend.initfunction14
scribe.legend.methods>set_contextmenusubfunction70
uigettoolfunction178
scribe/private/updateLegendMenuToolbarfunction178
scribe.legend.methods>lscansubfunction72
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
29
ObjList=findobj(HandleList,var...
12751.137 s89.7%
33
set(0,'ShowHiddenHandles',Temp...
12750.033 s2.6%
27
set(0,'ShowHiddenHandles','on'...
12750.033 s2.6%
23
if ~all(ishghandle(HandleList)...
12750.033 s2.6%
34
if isequal(ObjList,-1),
12750.011 s0.9%
All other lines  0.022 s1.7%
Totals  1.268 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
findobjfunction12751.126 s88.8%
Self time (built-ins, overhead, etc.)  0.142 s11.2%
Totals  1.268 s100% 
Code Analyzer results
Line numberMessage
30Best practice is for CATCH to be followed by an identifier that gets the error information.
Coverage results
[ Show coverage for parent directory ]
Total lines in function36
Non-code lines (comments, blank lines)22
Code lines (lines that can run)14
Code lines that did run7
Code lines that did not run7
Coverage (did run/can run)50.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-2006 The MathWorks, Inc.
21 % $Revision: 1.1.8.2 $ $Date: 2008/05/05 21:38:17 $
22
0.03 1275 23 if ~all(ishghandle(HandleList)),
24 error('MATLAB:findall:InvalidHandles', 'Invalid handles passed to findall.')
25 end
0.01 1275 26 Temp=get(0,'ShowHiddenHandles');
0.03 1275 27 set(0,'ShowHiddenHandles','on');
1275 28 try
1.14 1275 29 ObjList=findobj(HandleList,varargin{:});
30 catch
31 ObjList=-1;
32 end
0.03 1275 33 set(0,'ShowHiddenHandles',Temp);
0.01 1275 34 if isequal(ObjList,-1),
35 error('MATLAB:findall:InvalidParameter','Invalid Parameter-value pairs passed to findall.');
36 end