printing/private/handleSimulinkPrinting (Calls: 12, Time: 0.108 s)
Generated 16-Jul-2020 17:09:14 using performance time.
function in file /Applications/MATLAB_R2020a.app/toolbox/matlab/graphics/printing/private/handleSimulinkPrinting.m
Copy to new window for comparing multiple runs
Function Name | Function Type | Calls |
function | 12 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
15 | if matlab.graphics.internal.is... | 12 | 0.108 s | 99.2% | |
11 | persistent slSfPrintFcnHandle; | 12 | 0.000 s | 0.3% | |
29 | end % if(isSLorSF(pj)) | 12 | 0.000 s | 0.2% | |
14 | done = false; | 12 | 0.000 s | 0.0% | |
38 | end | 12 | 0.000 s | 0.0% | |
All other lines | 0.000 s | 0.3% | |||
Totals | 0.108 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
isSLorSF | function | 12 | 0.107 s | 99.0% | |
Self time (built-ins, overhead, etc.) | 0.001 s | 1.0% | |||
Totals | 0.108 s | 100% |
Total lines in function | 38 |
Non-code lines (comments, blank lines) | 15 |
Code lines (lines that can run) | 23 |
Code lines that did run | 7 |
Code lines that did not run | 16 |
Coverage (did run/can run) | 30.43 % |
time | Calls | line | |
---|---|---|---|
1 | function done = handleSimulinkPrinting(pj) | ||
2 | % HANDLESIMULINKPRINTING - internal helper function to handle simulink | ||
3 | % figure for printing process. | ||
4 | |||
5 | % Copyright 2016-2020 The MathWorks, Inc. | ||
6 | |||
7 | |||
8 | % Function handle to be used for Simulink/Stateflow printing. | ||
9 | % Make persistent for efficiency (sramaswa) | ||
10 | |||
< 0.001 | 12 | 11 | persistent slSfPrintFcnHandle; |
12 | |||
< 0.001 | 12 | 13 | try |
< 0.001 | 12 | 14 | done = false; |
0.108 | 12 | 15 | if matlab.graphics.internal.isSLorSF(pj) |
16 | % Printer dialog | ||
17 | if (ispc() && strcmp(pj.Driver,'setup')) | ||
18 | eval('SLM3I.SLDomain.showPrintSetupDialog(pj.Handles{1}(1))'); | ||
19 | done = true; | ||
20 | return; | ||
21 | end | ||
22 | |||
23 | if(isempty(slSfPrintFcnHandle)) | ||
24 | slSfPrintFcnHandle = LocalGetSlSfPrintFcnHandle; | ||
25 | end | ||
26 | %pj = name(pj); | ||
27 | feval(slSfPrintFcnHandle, pj); | ||
28 | done = true; | ||
< 0.001 | 12 | 29 | end % if(isSLorSF(pj)) |
30 | catch me | ||
31 | % We want to see the complete stack in debug mode... | ||
32 | if(pj.DebugMode) | ||
33 | rethrow(me); | ||
34 | else % ...and a simple one in non-debug | ||
35 | throwAsCaller(me); | ||
36 | end | ||
< 0.001 | 12 | 37 | end |
< 0.001 | 12 | 38 | end |
Other subfunctions in this file are not included in this listing.