graphics/private/handleSimulinkPrinting (Calls: 1, Time: 0.001 s)
Generated 02-May-2020 21:54:36 using performance time.
function in file /Applications/MATLAB_R2018a.app/toolbox/matlab/graphics/private/handleSimulinkPrinting.m
Copy to new window for comparing multiple runs
Function Name | Function Type | Calls |
function | 1 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
15 | if(isSLorSF(pj)) | 1 | 0.000 s | 42.5% | |
11 | persistent slSfPrintFcnHandle; | 1 | 0.000 s | 29.5% | |
38 | end | 1 | 0.000 s | 0.3% | |
13 | try | 1 | 0.000 s | 0.2% | |
14 | done = false; | 1 | 0.000 s | 0.0% | |
All other lines | 0.000 s | 27.5% | |||
Totals | 0.001 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
graphics/private/isSLorSF | function | 1 | 0.000 s | 19.3% | |
Self time (built-ins, overhead, etc.) | 0.001 s | 80.7% | |||
Totals | 0.001 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 | 5 |
Code lines that did not run | 18 |
Coverage (did run/can run) | 21.74 % |
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 The MathWorks, Inc. | ||
6 | |||
7 | |||
8 | % Function handle to be used for Simulink/Stateflow printing. | ||
9 | % Make persistent for efficiency (sramaswa) | ||
10 | |||
< 0.001 | 1 | 11 | persistent slSfPrintFcnHandle; |
12 | |||
< 0.001 | 1 | 13 | try |
< 0.001 | 1 | 14 | done = false; |
< 0.001 | 1 | 15 | if(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; | ||
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 | ||
37 | end | ||
< 0.001 | 1 | 38 | end |
Other subfunctions in this file are not included in this listing.