This is a static copy of a profile report

Home

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

Home

graphics/private/isSLorSF (Calls: 9, Time: 0.007 s)
Generated 02-May-2020 21:54:35 using performance time.
function in file /Applications/MATLAB_R2018a.app/toolbox/matlab/graphics/private/isSLorSF.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
graphics/private/useOriginalHGPrintingfunction6
graphics/private/inputcheckfunction2
graphics/private/handleSimulinkPrintingfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
24
if(all(isslhandle(handles)))
90.004 s59.1%
20
if(~all(ishandle(handles)))
90.001 s10.2%
10
if(exist('open_system','builti...
90.001 s8.5%
14
if(isempty(pj.Handles))
90.001 s8.1%
18
handles = pj.Handles{:};
90.000 s5.8%
All other lines  0.001 s8.3%
Totals  0.007 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
graphics/private/isslhandlefunction90.003 s40.6%
Self time (built-ins, overhead, etc.)  0.004 s59.4%
Totals  0.007 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 run7
Code lines that did not run8
Coverage (did run/can run)46.67 %
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-2015 The MathWorks, Inc.
   6 

< 0.001 
      9 
   7
    slOrSf = false; 
   8 

   9 
    % No Simulink which means no stateflow either
< 0.001 
      9 
  10
    if(exist('open_system','builtin') == 0) 
  11 
        return;
  12 
    end
  13 

< 0.001 
      9 
  14
    if(isempty(pj.Handles)) 
  15 
        return;
  16 
    end
  17 

< 0.001 
      9 
  18
    handles = pj.Handles{:}; 
  19 

< 0.001 
      9 
  20
    if(~all(ishandle(handles))) 
  21 
       return; 
  22 
    end
  23 

  0.004 
      9 
  24
    if(all(isslhandle(handles))) 
  25 
        slOrSf = true;
  26 
    end
  27 

< 0.001 
      9 
  28
end 

Other subfunctions in this file are not included in this listing.