graphics/private/isSLorSF (Calls: 9, Time: 0.007 s)
Generated 02-May-2020 21:54:35 using performance time.
function in file /Applications/MATLAB_R2018a.app/toolbox/matlab/graphics/private/isSLorSF.m
Copy to new window for comparing multiple runs
Function Name | Function Type | Calls |
graphics/private/useOriginalHGPrinting | function | 6 |
graphics/private/inputcheck | function | 2 |
graphics/private/handleSimulinkPrinting | function | 1 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
24 | if(all(isslhandle(handles))) | 9 | 0.004 s | 59.1% | |
20 | if(~all(ishandle(handles))) | 9 | 0.001 s | 10.2% | |
10 | if(exist('open_system','builti... | 9 | 0.001 s | 8.5% | |
14 | if(isempty(pj.Handles)) | 9 | 0.001 s | 8.1% | |
18 | handles = pj.Handles{:}; | 9 | 0.000 s | 5.8% | |
All other lines | 0.001 s | 8.3% | |||
Totals | 0.007 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
graphics/private/isslhandle | function | 9 | 0.003 s | 40.6% | |
Self time (built-ins, overhead, etc.) | 0.004 s | 59.4% | |||
Totals | 0.007 s | 100% |
Total lines in function | 28 |
Non-code lines (comments, blank lines) | 13 |
Code lines (lines that can run) | 15 |
Code lines that did run | 7 |
Code lines that did not run | 8 |
Coverage (did run/can run) | 46.67 % |
time | Calls | line | |
---|---|---|---|
1 | function slOrSf = isSLorSF(pj) | ||
2 | % Helper to check whether the handles in pj is Simulink/Stateflow | ||
3 | % -sramaswa | ||
4 | |||
5 | % Copyright 2010-2015 The MathWorks, Inc. | ||
6 | |||
< 0.001 | 9 | 7 | slOrSf = false; |
8 | |||
9 | % No Simulink which means no stateflow either | ||
< 0.001 | 9 | 10 | if(exist('open_system','builtin') == 0) |
11 | return; | ||
12 | end | ||
13 | |||
< 0.001 | 9 | 14 | if(isempty(pj.Handles)) |
15 | return; | ||
16 | end | ||
17 | |||
< 0.001 | 9 | 18 | handles = pj.Handles{:}; |
19 | |||
< 0.001 | 9 | 20 | if(~all(ishandle(handles))) |
21 | return; | ||
22 | end | ||
23 | |||
0.004 | 9 | 24 | if(all(isslhandle(handles))) |
25 | slOrSf = true; | ||
26 | end | ||
27 | |||
< 0.001 | 9 | 28 | end |
Other subfunctions in this file are not included in this listing.