This is a static copy of a profile report

Home

findall (20 calls, 0.031 sec)
Generated 18-Mar-2011 23:32:26 using cpu time.
M-function in file /Applications/MATLAB_R2010a.app/toolbox/matlab/graphics/findall.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
scribe.legend.initM-function2
scribe.legend.methods>set_contextmenuM-subfunction10
uigettoolM-function4
scribe/private/updateLegendMenuToolbarM-function4
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
29
ObjList=findobj(HandleList,var...
200.031 s100.0%
34
if isequal(ObjList,-1),
200 s0%
33
set(0,'ShowHiddenHandles',Temp...
200 s0%
28
try
200 s0%
27
set(0,'ShowHiddenHandles','on'...
200 s0%
All other lines  0 s0%
Totals  0.031 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
findobjM-function200.031 s100.0%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  0.031 s100% 
M-Lint 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
20 23 if ~all(ishghandle(HandleList)),
24 error('MATLAB:findall:InvalidHandles', 'Invalid handles passed to findall.')
25 end
20 26 Temp=get(0,'ShowHiddenHandles');
20 27 set(0,'ShowHiddenHandles','on');
20 28 try
0.03 20 29 ObjList=findobj(HandleList,varargin{:});
30 catch
31 ObjList=-1;
32 end
20 33 set(0,'ShowHiddenHandles',Temp);
20 34 if isequal(ObjList,-1),
35 error('MATLAB:findall:InvalidParameter','Invalid Parameter-value pairs passed to findall.');
36 end