This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
29 | ObjList=findobj(HandleList,var... | 1275 | 1.137 s | 89.7% |  |
33 | set(0,'ShowHiddenHandles',Temp... | 1275 | 0.033 s | 2.6% |  |
27 | set(0,'ShowHiddenHandles','on'... | 1275 | 0.033 s | 2.6% |  |
23 | if ~all(ishghandle(HandleList)... | 1275 | 0.033 s | 2.6% |  |
34 | if isequal(ObjList,-1), | 1275 | 0.011 s | 0.9% |  |
All other lines | | | 0.022 s | 1.7% |  |
Totals | | | 1.268 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
findobj | function | 1275 | 1.126 s | 88.8% |  |
Self time (built-ins, overhead, etc.) | | | 0.142 s | 11.2% |  |
Totals | | | 1.268 s | 100% | |
Code Analyzer results
Line number | Message |
30 | Best 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 function | 36 |
Non-code lines (comments, blank lines) | 22 |
Code lines (lines that can run) | 14 |
Code lines that did run | 7 |
Code lines that did not run | 7 |
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