This is a static copy of a profile report

Home

Function details for graphics/private/handleSimulinkPrintingThis is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
printfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
15
if(isSLorSF(pj))
10.000 s42.5%
11
persistent slSfPrintFcnHandle;
10.000 s29.5%
38
end
10.000 s0.3%
13
try
10.000 s0.2%
14
done = false;
10.000 s0.0%
All other lines  0.000 s27.5%
Totals  0.001 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
graphics/private/isSLorSFfunction10.000 s19.3%
Self time (built-ins, overhead, etc.)  0.001 s80.7%
Totals  0.001 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 run5
Code lines that did not run18
Coverage (did run/can run)21.74 %
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 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.