isSLorSF (Calls: 104, Time: 1.490 s)
Generated 16-Jul-2020 17:09:13 using performance time.
function in file /Applications/MATLAB_R2020a.app/toolbox/matlab/graphics/printing/+matlab/+graphics/+internal/isSLorSF.m
Copy to new window for comparing multiple runs
Function Name | Function Type | Calls |
useOriginalHGPrinting | function | 68 |
printing/private/inputcheck | function | 24 |
printing/private/handleSimulinkPrinting | function | 12 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
24 | if(all(matlab.graphics.interna... | 104 | 1.478 s | 99.2% | |
20 | if(~all(ishandle(handles))) | 104 | 0.005 s | 0.3% | |
10 | if(exist('open_system','builti... | 104 | 0.002 s | 0.1% | |
18 | handles = pj.Handles{:}; | 104 | 0.002 s | 0.1% | |
14 | if(isempty(pj.Handles)) | 104 | 0.001 s | 0.1% | |
All other lines | 0.002 s | 0.1% | |||
Totals | 1.490 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
isslhandle | function | 104 | 1.476 s | 99.1% | |
Self time (built-ins, overhead, etc.) | 0.014 s | 0.9% | |||
Totals | 1.490 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 | 11 |
Code lines that did not run | 4 |
Coverage (did run/can run) | 73.33 % |
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-2020 The MathWorks, Inc. | ||
6 | |||
< 0.001 | 104 | 7 | slOrSf = false; |
8 | |||
9 | % No Simulink which means no stateflow either | ||
0.002 | 104 | 10 | if(exist('open_system','builtin') == 0) |
11 | return; | ||
< 0.001 | 104 | 12 | end |
13 | |||
0.001 | 104 | 14 | if(isempty(pj.Handles)) |
15 | return; | ||
< 0.001 | 104 | 16 | end |
17 | |||
0.002 | 104 | 18 | handles = pj.Handles{:}; |
19 | |||
0.005 | 104 | 20 | if(~all(ishandle(handles))) |
21 | return; | ||
< 0.001 | 104 | 22 | end |
23 | |||
1.478 | 104 | 24 | if(all(matlab.graphics.internal.isslhandle(handles))) |
25 | slOrSf = true; | ||
< 0.001 | 104 | 26 | end |
27 | |||
< 0.001 | 104 | 28 | end |
Other subfunctions in this file are not included in this listing.