graphics/private/isSLorSF (54 calls, 0.000 sec)
Generated 14-Nov-2016 07:47:15 using cpu time.
function in file /usr/local/MATLAB/MATLAB_Production_Server/R2015a/toolbox/matlab/graphics/private/isSLorSF.m
Copy to new window for comparing multiple runs
Function Name | Function Type | Calls |
graphics/private/useOriginalHGPrinting | function | 36 |
graphics/private/inputcheck | function | 12 |
print>LocalHandleSimulink | subfunction | 6 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
37 | end | 54 | 0 s | 0% | ![]() |
35 | end % if | 54 | 0 s | 0% | ![]() |
34 | end % if | 54 | 0 s | 0% | ![]() |
31 | break; | 54 | 0 s | 0% | ![]() |
30 | if(~slOrSf) | 54 | 0 s | 0% | ![]() |
All other lines | 0 s | 0% | ![]() | ||
Totals | 0 s | 0% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
graphics/private/isslhandle | function | 54 | 0 s | 0% | ![]() |
Self time (built-ins, overhead, etc.) | 0 s | 0% | ![]() | ||
Totals | 0 s | 0% |
Total lines in function | 37 |
Non-code lines (comments, blank lines) | 11 |
Code lines (lines that can run) | 26 |
Code lines that did run | 17 |
Code lines that did not run | 9 |
Coverage (did run/can run) | 65.38 % |
time | calls | line | |
---|---|---|---|
1 | function slOrSf = isSLorSF(pj) | ||
2 | % Helper to check whether the handles in pj is Simulink/Stateflow | ||
3 | % -sramaswa | ||
4 | |||
54 | 5 | slOrSf = false; | |
6 | |||
7 | % No Simulink which means no stateflow either | ||
54 | 8 | if(exist('open_system','builtin') == 0) | |
9 | return; | ||
10 | end | ||
11 | |||
54 | 12 | if(isempty(pj.Handles)) | |
13 | return; | ||
14 | end | ||
15 | |||
54 | 16 | handles = pj.Handles{:}; | |
17 | |||
54 | 18 | if(~all(ishandle(handles))) | |
19 | return; | ||
20 | end | ||
21 | |||
54 | 22 | if(all(isslhandle(handles))) | |
23 | slOrSf = true; | ||
54 | 24 | else | |
54 | 25 | if(all(ishghandle(handles))) | |
54 | 26 | slOrSf = true; | |
54 | 27 | for i = 1:length(handles) | |
54 | 28 | isSfPortal = strcmpi(get(handles(i),'Tag'),'SF_PORTAL'); | |
54 | 29 | slOrSf = slOrSf && isSfPortal; | |
54 | 30 | if(~slOrSf) | |
54 | 31 | break; | |
32 | end | ||
33 | end % for | ||
54 | 34 | end % if | |
54 | 35 | end % if | |
36 | |||
54 | 37 | end |
Other subfunctions in this file are not included in this listing.