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
Function Name | Function Type | Calls |
firePrintBehavior | function | 22 |
printing/private/printjobContentChanges | function | 12 |
...rintEnhanceTextures.needEnhanceOutput | class method | 24 |
...tChanges>localUpdateSelectionState | subfunction | 12 |
printing/.../printingAxesTickLabelUpdate | function | 12 |
printing/private/adjustbackground | function | 44 |
...job>mlprintjob.modifyUnitsForPrint | class method | 48 |
...b.modifyUnitsForPrint/getObjWithUnits | nested function | 60 |
updateLegendMenuToolbar | function | 16 |
uigettool | function | 16 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
41 | ObjList=findobj(HandleList,var... | 266 | 1.291 s | 87.5% | |
37 | c = onCleanup(showHiddenHandle... | 266 | 0.092 s | 6.2% | |
48 | end | 266 | 0.066 s | 4.4% | |
46 | if isequal(ObjList,-1) | 266 | 0.009 s | 0.6% | |
23 | if ~isa(HandleList,'matlab.gra... | 266 | 0.005 s | 0.3% | |
All other lines | 0.013 s | 0.9% | |||
Totals | 1.476 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
...nPane>AnnotationPane.doGetChildren | class method | 904 | 0.170 s | 11.5% | |
...nPane>AnnotationPane.getParentImpl | class method | 980 | 0.075 s | 5.1% | |
...>showHiddenHandlesToFindAllHandles | subfunction | 266 | 0.063 s | 4.3% | |
...set(rootobj,'ShowHiddenHandles',Temp) | anonymous function | 266 | 0.041 s | 2.8% | |
Legend.doGetChildren | function | 328 | 0.040 s | 2.7% | |
Legend.Legend>Legend.get.Units | class method | 40 | 0.014 s | 1.0% | |
...er>AxesLayoutManager.getParentImpl | class method | 350 | 0.001 s | 0.1% | |
Self time (built-ins, overhead, etc.) | 1.071 s | 72.6% | |||
Totals | 1.476 s | 100% |
Total lines in function | 48 |
Non-code lines (comments, blank lines) | 32 |
Code lines (lines that can run) | 16 |
Code lines that did run | 12 |
Code lines that did not run | 4 |
Coverage (did run/can run) | 75.00 % |
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.