This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
printfunction12
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
15
if matlab.graphics.internal.is...
120.108 s99.2%
11
persistent slSfPrintFcnHandle;
120.000 s0.3%
29
end % if(isSLorSF(pj))
120.000 s0.2%
14
done = false;
120.000 s0.0%
38
end
120.000 s0.0%
All other lines  0.000 s0.3%
Totals  0.108 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
isSLorSFfunction120.107 s99.0%
Self time (built-ins, overhead, etc.)  0.001 s1.0%
Totals  0.108 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function38
Non-code lines (comments, blank lines)15
Code lines (lines that can run)23
Code lines that did run7
Code lines that did not run16
Coverage (did run/can run)30.43 %
Function listing
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.