This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
useOriginalHGPrintingfunction68
printing/private/inputcheckfunction24
printing/private/handleSimulinkPrintingfunction12
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
24
if(all(matlab.graphics.interna...
1041.478 s99.2%
20
if(~all(ishandle(handles)))
1040.005 s0.3%
10
if(exist('open_system','builti...
1040.002 s0.1%
18
handles = pj.Handles{:};
1040.002 s0.1%
14
if(isempty(pj.Handles))
1040.001 s0.1%
All other lines  0.002 s0.1%
Totals  1.490 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
isslhandlefunction1041.476 s99.1%
Self time (built-ins, overhead, etc.)  0.014 s0.9%
Totals  1.490 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function28
Non-code lines (comments, blank lines)13
Code lines (lines that can run)15
Code lines that did run11
Code lines that did not run4
Coverage (did run/can run)73.33 %
Function listing
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.